• 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: scrpting Script Editor (save as script)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scrpting Script Editor (save as script)


  • Subject: Re: scrpting Script Editor (save as script)
  • From: Axel Luttgens <email@hidden>
  • Date: Sat, 12 Jan 2008 10:18:35 +0100

On 12/01/08 10:09, Yvon Thoraval wrote:
2008/1/12, Axel Luttgens <email@hidden>:
[...]
Looks like one saves a window's document, not the window itself.
On the other hand, the as parameter is defined as a string.
So,

tell application "Script Editor" to save document of front window as
"script"

shoud be more compliant with SE's dictionary.


ok, fine thanks (i had both tried save as script and save as "script"...)
seems to work only with document however i needed to add :

save document *of* *front* window as "script" in *my* getAlias(aFile)

*my* getAlias(aFile) making a new empty file with extension ".scpt" and
returning it's alias...

if i read the Script Editor dictionnary, i get :

[...]

[in alias] is between [] does that means it's an option ???

Yes. If you don't specify it (as in my snippet above), you just get the "Save as:" dialog.

HTH,
Axel

 _______________________________________________
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

  • Follow-Ups:
    • Re: scrpting Script Editor (save as script)
      • From: "Yvon Thoraval" <email@hidden>
References: 
 >scrpting Script Editor (save as script) (From: "Yvon Thoraval" <email@hidden>)
 >Re: scrpting Script Editor (save as script) (From: Axel Luttgens <email@hidden>)
 >Re: scrpting Script Editor (save as script) (From: "Yvon Thoraval" <email@hidden>)

  • Prev by Date: Re: scrpting Script Editor (save as script)
  • Next by Date: Re: scrpting Script Editor (save as script)
  • Previous by thread: Re: scrpting Script Editor (save as script)
  • Next by thread: Re: scrpting Script Editor (save as script)
  • Index(es):
    • Date
    • Thread