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

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
  • Follow-Ups:
    • Re: Problem Scripting the Script Editor
      • From: Joe <email@hidden>
    • Re: Problem Scripting the Script Editor
      • From: Luther Fuller <email@hidden>
    • Re: Problem Scripting the Script Editor
      • From: Philip Aker <email@hidden>
  • Prev by Date: Re: Capturing output from the command line in a AppleScript dialog box
  • Next by Date: Re: Problem Scripting the Script Editor
  • Previous by thread: Re: Capturing output from the command line in a AppleScript dialog box
  • Next by thread: Re: Problem Scripting the Script Editor
  • Index(es):
    • Date
    • Thread