Re: scrpting Script Editor (save as script)
Re: scrpting Script Editor (save as script)
- Subject: Re: scrpting Script Editor (save as script)
- From: Ed Stockly <email@hidden>
- Date: Sat, 12 Jan 2008 17:20:09 -0800
Script Editor seems to behave oddly when compiling and saving scripts.
If you have a script in script editor that won't compile, and run this script, you get an error message in the script editor User Interface.
If you clear that error, and run this script again, without fixing the script in Script Editor, the script saves as a "Script", but it's not compiled,
Very odd.
I would recommend using the compile command before saving. It returns an Apple Event error if the script can't be compiled.
set newDocumentpath to (path to desktop as string) & "testName" tell application "Script Editor" -- compile document 1 save document 1 in file newDocumentpath as "Script" end tell
HTH,
ES =
|
_______________________________________________
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