• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Newbie Quark Scripting critique
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Newbie Quark Scripting critique


  • Subject: Newbie Quark Scripting critique
  • From: "Wallace, William" <email@hidden>
  • Date: Tue, 22 Oct 2002 14:59:31 -0500

Okay, first of all this works:

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
But I'd like to hear from the experts (you guys) any suggestions on making
this script more efficient and foolproof. There are three things that I plan
on doing with this already and I'd also like some tips on the best way to
achieve these goals:

1. I'd like to create a folder for the outputted EPS files rather than just
dumping them all on the desktop. Also, this script will be used by others,
so I have to do some more coding to get the name of the startup disk of the
machine running the script and place the folder in a logical place (perhaps
as a subfolder of the folder that contains the original document).

2. I'll have to do some sort of checking on the file name of the outfile to
make sure it isn't too long (this is an OS9 project)

3. I'm still trying to decide if I want to make this a droplet or perhaps
have the user choose the file to be processed from a dialog box upon
launching the script or just instructing users to open the file in quark and
then launch the script. The last option seems to be the most prone to user
error, so maybe that's out.

Anyway, any advice or input would be greatly appreciated.

Thanks,

-Bill

PS I'm also wondering about the correct syntax for all options of the save
command. any hints?

William Wallace
Electronics Manager
McGraw-Hill/Contemporary
email@hidden
_______________________________________________
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.

  • Prev by Date: Re: Skip current repeat iteration
  • Next by Date: Re: Skip current repeat iteration
  • Previous by thread: Re: Recording in the script editor - Jaguar
  • Next by thread: Re: Newbie Quark Scripting critique
  • Index(es):
    • Date
    • Thread