• 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: keystroke is very slow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >keystroke is very slow (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: get selected text of message in Mail?
  • Next by Date: Re: get selected text of message in Mail?
  • Previous by thread: keystroke is very slow
  • Next by thread: Re: keystroke is very slow
  • Index(es):
    • Date
    • Thread