Re: Keystroke command limit
Re: Keystroke command limit
- Subject: Re: Keystroke command limit
- From: Bill Cheeseman <email@hidden>
- Date: Wed, 27 Aug 2003 12:41:09 -0400
on 03-08-26 1:55 PM, John Delacour at email@hidden wrote:
>
At 11:42 am -0400 26/8/03, Bill Cheeseman wrote:
>
>
> You can put an unlimited amount of text into a TextEdit text view, for
>
> example, just by setting the text area's value attribute. It's faster, too,
>
> I imagine.
>
>
>
> set value of text area 1 of scroll area 1 of window "Untitled" to
>
> "<string>"
>
>
What would be the point of this, since the window has only one scroll
>
area containing only one text area? Poor though TextEdit's
>
dictionary is, it does at least allow:
>
>
tell app "TextEdit" to set text of document 1 to "<string>"
Correct. Always use the target app's own scripting capability, if it has
any.
I used TextEdit for the GUI Scripting example, as I usually do, because
everybody has TextEdit and can test it to see that it works. I'm assuming
everybody here can extrapolate from that to a text-based application that
doesn't have a dictionary.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.