Re: TextEdit script
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