Re: Scripting the Apple Script Editor program
Re: Scripting the Apple Script Editor program
- Subject: Re: Scripting the Apple Script Editor program
- From: Christopher Stone <email@hidden>
- Date: Sun, 06 Nov 2011 20:42:38 -0600
On Nov 06, 2011, at 19:33, Daniel J. Brieck Jr. wrote: Was wondering if anyone could help me figure out what the updated syntax is for lion dealing with scripting the script editor to write scripts. Been looking around online and with in the Script Editor Dictionary and seem to be getting nowhere.
For example the following script worked just fine in Mac OS 10.5 and 10.6. ______________________________________________________________________
Hey Daniel,
I use Script Debugger and Smile. I hardly ever touch the Applescript Editor except for testing here and there, so I'm out of touch with its peculiarities.
After fighting with it for a little while I got a couple of examples working:
tell application "AppleScript Editor" set newDoc to make new document tell newDoc set contents of selection to "Say \"Hello\"" compile execute end tell end tell
tell application "AppleScript Editor" set newDoc to make new document tell newDoc make new paragraph at beginning with data "Say \"Say Anything!\"" compile execute end tell end tell
-- Best Regards, Chris
|
_______________________________________________
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