"Save file with" dialog box
"Save file with" dialog box
- Subject: "Save file with" dialog box
- From: email@hidden
- Date: Sat, 25 Aug 2007 09:58:17 EDT
Sorry, but I must admit to having one of those "Doh!" moments:
There are several script applications that are set to save a modified "Master" QuarkXPress document -- mind you, NOT Master PAGES -- with a prescribed name change to a different folder. There has been a request, however, to allow remote users to customize the process through a dialog box, which would let them enter a new file name for the modified doc and select a folder of their preference.
What I have below works up to the point where the dialog box appears, a new name is entered, and a destination folder is selected. At that moment I get an error message stating that it "Can't get document of 'fileName'". Now I've probably overlooked something very simple, so please forgive the elementary error:
set fileName to (text returned of (display dialog ¬
"Save file as:" default answer ""))
set fileName to the fileName
save document of the fileName in (choose folder)
close document "ScheduleMaster"
beep 2
Please restrict your responses to plain vanilla AS . . . . and your lashes to 40 or less (with a wet noodle).
Mike
_,.-:*ˆ*:-.,_,.-:*ˆ*:-.,_,.-:*ˆ*:-.,_,.-:*ˆ*:-.,_,.-:*ˆ*:-.,
"For every complex problem, there is a solution
that is simple, neat and wrong." -H.L.Mencken
**************************************
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:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden