• 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: "Save file with" dialog box
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Save file with" dialog box


  • Subject: Re: "Save file with" dialog box
  • From: Levon Spradlin <email@hidden>
  • Date: Thu, 30 Aug 2007 10:43:10 -0500
  • Thread-topic: "Save file with" dialog box

Title: Re: "Save file with" dialog box
Try adding a close line to the end:

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


Levon Spradlin
Desktop Publishing Technology Manager, Assessment & Information
Pearson
512-989-5300 x 3989
email@hidden







From: <email@hidden>
Date: Thu, 30 Aug 2007 09:03:45 EDT
To: <email@hidden>
Subject: 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:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

****************************************************************************

This email may contain confidential
material. If you were not an intended recipient,
Please notify the sender and delete all copies.
We may monitor email to and from our network.

 ***************************************************************************

 
 _______________________________________________
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

References: 
 >Re: "Save file with" dialog box (From: email@hidden)

  • Prev by Date: Re: XML - System Events vs XMLlib
  • Next by Date: Re: XML - System Events vs XMLlib
  • Previous by thread: Re: "Save file with" dialog box
  • Next by thread: Old AppleScript applications stopped working
  • Index(es):
    • Date
    • Thread