• 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: Problem Scripting the Script Editor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Problem Scripting the Script Editor (From: Dave <email@hidden>)

  • Prev by Date: Re: AppleScript-Users Digest, Vol 5, Issue 540
  • Next by Date: Re: Capturing output from the command line in a AppleScript dialog box
  • Previous by thread: Re: Problem Scripting the Script Editor
  • Next by thread: Re: Problem Scripting the Script Editor
  • Index(es):
    • Date
    • Thread