This content has been marked as final. Show 3 replies
How would the script identify PDF1 or PDF80? Are those the names of the<br />files?<br /><br />-- <br />Shane Stanley <firstname.lastname@example.org><br />AppleScript Pro Florida, April 2009 <a href=http://scriptingmatters.com/aspro>
yes, those would be the names of the files. The file naming convention would always be consistent as PDF1, PDF2, PDF3, etc...
Well, no time for complete scripting, but to split a string up using AS, you change the Applescript text item delimiters. So it would be something like
set myPDF to "PDF37" --This would be gotten from your file list normally
set oldDelims to applescript's text item delimiters
set applescript's text item delimiters to "PDF" --We will be splitting on the word PDF
set myPageNum to text item 2 of myPDF --Should yield "37"
set applescript's text item delimiters to oldDelims
tell application "Adobe InDesign CS3"
tell active document
tell page myPageNum