Hi Jerry, (did try emailing but in case you wanted to stay on the forum ill post here also)
Yvan had so many scripts and zip files I could never find the OP's answer!
I am not sure if you read the original post - (https://discussions.apple.com/message/8943167#8943167)
To save you reading - what the OP and myself are trying to do is print the second sheet of the grade book template (with the chart) for all the pupils so that I could give it to them at the end of term. I have 305 pupils at my school and don't want to generate all the reports individually and the OP seemed to think that applescirpt was the way to go - which Yvan created! Somebody else suggested Mailmerge into Pages (and it was apparently in a Pages forum that Yvan solved the problem - so possibly it was a mail merge solution.) Applescript is beyond me - and so here we are! Would it be possible to create a script that would call the pupils individually and create the table and chart - or even just the chart?
I do appreciate your help again (you have help me before a few times in the forum).
Mail Merge would be a great solution, with one limitation, I think. The problem is that Pages doesn't seem to be able to insert a mail merge field in a chart data array, and I know that it can't make a chart from Data in a Table. If you can do the report without the chart, you're on your way with mail merge.