Re: keystroke is very slow
Re: keystroke is very slow
- Subject: Re: keystroke is very slow
- From: Bill Cheeseman <email@hidden>
- Date: Fri, 02 Sep 2005 04:36:01 -0400
on 2005-09-02 12:02 AM, Robert Poland at email@hidden wrote:
> I am doing a script that uses the keystroke command. It is very slow,
> Is there another way to enter data with a GUI script?
Are you entering one character at a time with multiple 'keystroke' commands?
That would be relatively slow. You can enter an entire string with a single
'keystroke' command, and I haven't noticed that doing so is particularly
slow.
In general, however, it is preferable to set the value of a text view or
text field, in cases where the value is settable using GUI Scripting, like
so:
set value of text field 1 of window 1 to "<string>"
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
PreFab Software - http://www.prefab.com/scripting.html
The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
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