• 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 Apple Script Editor program
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Scripting the Apple Script Editor program (From: "Daniel J. Brieck Jr." <email@hidden>)

  • Prev by Date: Re: International Colors
  • Next by Date: Re: AppleScript applications and sandboxing
  • Previous by thread: Scripting the Apple Script Editor program
  • Next by thread: Burning DVD's
  • Index(es):
    • Date
    • Thread