Subject: "Save file with" dialog box
To: email@hidden
Message-ID: <email@hidden">email@hidden>
Content-Type: text/plain; charset="utf-8"
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).