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

Re: Scripting the Script editor


  • Subject: Re: Scripting the Script editor
  • From: Rob Jorgensen <email@hidden>
  • Date: Wed, 16 Apr 2003 16:35:53 -0400

At 3:10 PM -0500 4/16/03, Dr. Max Bonilla wrote:
The script editor (OS X, v. 2.0) is scriptable, yet any way I try to open a new document and insert a script text, I get an error. The dictionary is not helping me. I'm trying to run the scrip from Script Debugger, calling Script editor and having it make a new document and insert a given text. It's fairly simple. I don't dare move to the next step, to have it compiled and saved in a particular folder.

Can anyone help me get at least to the first part (make new document, insert text)? Thanks a lot.

This works for me.

--
tell application "Script Editor"
activate
set newDoc to make at end new document with properties {text:"display dialog \"It worked!\""}
try
check syntax newDoc
execute newDoc
end try
end tell

--

Rob Jorgensen
Ohio, USA
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Scripting the Script editor
      • From: John Delacour <email@hidden>
References: 
 >Scripting the Script editor (From: "Dr. Max Bonilla" <email@hidden>)

  • Prev by Date: RE: Script application hdiutil mount errors
  • Next by Date: Re: Getting the labels of a record
  • Previous by thread: Scripting the Script editor
  • Next by thread: Re: Scripting the Script editor
  • Index(es):
    • Date
    • Thread