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

Re: TextEdit script


  • Subject: Re: TextEdit script
  • From: Hanaan Rosenthal <email@hidden>
  • Date: Mon, 18 Jul 2005 9:48:32 -0400
  • Organization: Custom Flow Solutions

>From what I can tell, TextEdit's dictionary lacks the 'selection' object.
That means that you will have to find an alternate way to point to the text you
want to change.
Something like: "text of document 1"  will work instead of selection, but
obviously won't accomplish the same result.

Hanaan

> 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:
email@hidden
>
> This email sent to email@hidden
>

 _______________________________________________
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

  • Prev by Date: TextEdit script
  • Next by Date: Re: Script application "bundles" that are read-only: error when quitting
  • Previous by thread: Re: TextEdit script
  • Next by thread: Getting directory path
  • Index(es):
    • Date
    • Thread