Re: Scripting the Script editor
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.