• 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
Re: AppleScript-Users Digest, Vol 4, Issue 415
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript-Users Digest, Vol 4, Issue 415


  • Subject: Re: AppleScript-Users Digest, Vol 4, Issue 415
  • From: Ed Stockly <email@hidden>
  • Date: Sat, 25 Aug 2007 10:10:40 -0700

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

On Aug 25, 2007, at 9:18 AM, email@hidden wrote:

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).




=
 _______________________________________________
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

  • Prev by Date: Re: Old AppleScript applications stopped working
  • Next by Date: Re: Old AppleScript applications stopped working
  • Previous by thread: Re: Old AppleScript applications stopped working
  • Next by thread: SIPS - convert color space..
  • Index(es):
    • Date
    • Thread