Problem Scripting the Script Editor
Problem Scripting the Script Editor
- Subject: Problem Scripting the Script Editor
- From: Dave <email@hidden>
- Date: Tue, 30 Sep 2008 19:14:45 +0100
Hi All,
I'm having problems scripting the Script Editor, Please see following
script:
tell application "Script Editor"
set myWindow to make new document
set myText to "on run" & return & "beep" & return & "end run" & return
set the text of myWindow to myText
compile myWindow
save myWindow as "application" in "/Users/Dave/Test1.app" without
runonly and startup screen
end tell
This creates a new window, add the text correctly, compiles it ok,
but does not save the file as an application as expected. I don't get
an error message or any indication that the save didn't work, just no
Test1.app file at the end of it!
What am I doing wrong?
Thanks for the Help.
All the Best
Dave
_______________________________________________
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