Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Save file with" dialog box




In a message dated 8/25/07 1:11:21 PM, email@hidden writes:


Wouldn't this work?

set myFile to choose file name with prompt "Save file as:"
--file "Macintosh HD:Users:appleScript:Documents:untitled"

tell application "Quark" to save document 1 in myFile

HTH,


ES




Pretty darn close!

          set myFile to choose file name with prompt "Save file as:"
          save document "ScheduleMaster" in myFile


does indeed let me rename the file and save it to a destination of my choosing. Thank you!

The only drawback is that one must manually close the open file after the save. It keeps erroring as if I'm asking the "saved version" of the document -- now in its' place on the hard disk -- to close. The only way is to have the script quit QuarkXPress, which I'd rather not do. One can live with manually having to close out the open doc, but this is a tad puzzling. Guess I can live with it, though.




**************************************
Get a sneak peek of the all-new AOL at http://discover.aol.com/memed/aolcom30tour
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.