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

Scripting the Apple Script Editor program


  • Subject: Scripting the Apple Script Editor program
  • From: "Daniel J. Brieck Jr." <email@hidden>
  • Date: Sun, 06 Nov 2011 20:33:25 -0500

Hi there,

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.

tell application "AppleScript Editor"


make new document set NewDocumemntName to result

--Getting the accurate window name part from the document class
set windowName to name of NewDocumemntName


--Populate the Script file with some text. tell text of document windowName make new paragraph at paragraph 1 with data "Say \"Hello\" "

end tell
end tell

Yet on Mac OS 10.7 that above script no longer works and gives an error such as: "error "AppleScript Editor got an error: Can’t get paragraph 1 of every text of document \"Untitled\". Invalid index." number -1719 from paragraph 1 of every text of document "Untitled""

Thanks,

--
Daniel J. Brieck Jr.
_______________________________________________
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: Scripting the Apple Script Editor program
      • From: Christopher Stone <email@hidden>
  • Prev by Date: Re: International Colors
  • Next by Date: Re: International Colors
  • Previous by thread: Re: International Colors
  • Next by thread: Re: Scripting the Apple Script Editor program
  • Index(es):
    • Date
    • Thread