• 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
TextEdit script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

TextEdit script


  • Subject: TextEdit script
  • From: "B2 Fass-Holmes" <email@hidden>
  • Date: 18 Jul 2005 05:08:40 -0700

Panther.9

Could someone please explain to me what is defective in the following AppleScript and what needs to be changed so that it functions properly when I select text in TextEdit and execute the script? It currently yields an error NSCannotCreateScriptCommandError (even though the script compiles successfully).

tell application "TextEdit"
	activate
	set font of selection to "Lucida Grande"
	set size of selection to 11
end tell

Many thanks in advance!

Barry

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: TextEdit script
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: what's the ascii for the escape key, and bonus question
  • Next by Date: Re: TextEdit script
  • Previous by thread: Re: name of file
  • Next by thread: Re: TextEdit script
  • Index(es):
    • Date
    • Thread