Re: scrpting Script Editor (save as script)
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