Re: Problem Scripting the Script Editor
Re: Problem Scripting the Script Editor
- Subject: Re: Problem Scripting the Script Editor
- From: Joe <email@hidden>
- Date: Tue, 30 Sep 2008 15:27:05 -0700
At 7:14 PM +0100 9/30/08, Dave wrote:
>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
At 2:36 PM -0700 9/30/08, Stockly, Ed wrote:
>You are very close, try this:
Another way of getting a script into Script Editor that I like.
tell application "Script Editor"
open location "applescript://com.apple.scripteditor/?action=new&script=on run
beep
end run"
--<save as app lines go here>
end tell
The URL is encoded by a script based on Apple's example text encoding script.
Joe
_______________________________________________
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