Hi
I am trying to put together a script which will create a series of tailored (ie lettered) pages in Pages which will then be used as cover pages for documents.
I have this:
set anumbers to {"A", "B", "C", "D", "E"}
set dname to "Mr Tester"
set datefield to "12 November 2010"
tell application "Pages"
set frontdocument to open (path to current user folder as Unicode text) & "Library:Application Support:iWork:Pages:Templates:Default:NoMargins.template"
--tell frontdocument
repeat with pgn from 1 to 5
tell body text of document 1
set body text to "This is the page " & item pgn of anumbers & " from " & dname & " dated " & datefield
insert page break
end tell
end repeat
--end tell
end tell
It does not work, unfortunately. Ideally, I would like each page to have the text set out above on each page in ordinary size type along the top, with the letter (A,B,C,E,D etc) appearing, in addition, prominently in the middle of the page in very large type.
Can anyone point me in the right direction?
Thanks