Re: Newbie Quark Scripting critique
Re: Newbie Quark Scripting critique
- Subject: Re: Newbie Quark Scripting critique
- From: "Brian J. Geiger" <email@hidden>
- Date: Tue, 22 Oct 2002 16:19:26 -0400
On Tuesday, October 22, 2002, at 03:59 PM, Wallace, William wrote:
tell application "QuarkXPress(tm) 4.11"
set pageCount to count of pages of document 1
repeat with i from 1 to pageCount
set docName to name of document 1
set outFile to "Startup:Desktop Folder:" & docName & i & ".eps"
save page i of document 1 in outFile
end repeat
end tell
A few things leap to mind:
1) set docName outside of your repeat loop. Since you're not changing
the document, it will stay the same throughout the life of the repeat
loop.
2) Put in a try block around the save page statement. If something
fails, you might want to stop and error, or you might want to try to
work around it, depending on what the problem is.
3) Do you want to replace the documents always? I have a script set up
to check the ending folder and see if the document exists. If it
doesn't, then it makes the file (this is for final builds of the
publications). Obviously, this depends on your workflow, so you will
have to make the decision for yourself on that.
=Brian
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.