• 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 command limit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Keystroke command limit
      • From: John Delacour <email@hidden>
References: 
 >Re: Keystroke command limit (From: Nigel Smith <email@hidden>)

  • Prev by Date: FMP record ID...
  • Next by Date: Connection invalid on quit
  • Previous by thread: Re: Keystroke command limit
  • Next by thread: Re: Keystroke command limit
  • Index(es):
    • Date
    • Thread