Re: Keystroke command limit
Re: Keystroke command limit
- Subject: Re: Keystroke command limit
- From: Bill Cheeseman <email@hidden>
- Date: Tue, 26 Aug 2003 11:42:20 -0400
on 03-08-26 11:11 AM, Nigel Smith at email@hidden wrote:
>
Work round? Don't rely on GUI scripting for anything but the simplest of key
>
presses...
This is an area where GUI Scripting (System Events) does it a little
differently than the Accessibility API on which most of GUI Scripting is
built. In my app, PreFab UI Browser, the Keystrokes drawer allows posting
only one key at a time. GUI Scripting works with multiple characters,
perhaps by sending the post event repeatedly, once for each key. I can see
how this might run into timing issues.
If the text view or text field into which you're trying to stuff the
characters supports setting the value attribute, do it that way, instead.
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>"
--
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.