• 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: How to Paste into Outlook 2011 using keystorkes/System Events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to Paste into Outlook 2011 using keystorkes/System Events


  • Subject: Re: How to Paste into Outlook 2011 using keystorkes/System Events
  • From: Bill Cheeseman <email@hidden>
  • Date: Thu, 25 Feb 2016 16:19:48 -0500


On Feb 25, 2016, at 3:26 PM, Dave <email@hidden> wrote:

I’d rather keystroke the whole thing in (but it could be very big), is this a good idea?

In this connection, you should be aware that UI Browser, on the one hand, and System Events and GUI Scripting on the other, work differently with respect to the 'keystroke' command. I mention this just so you won't get confused if you try to test any of this in UI Browser.

Apple's Accessibility API contemplates that the function behind the 'keystroke' command will send one character per call. UI Browser does the same, because I wrote UI Browser primarily as a developer utility for other developers to make sure their applications comply with the Accessibility API.

However, the Apple engineer who authored the GUI Scripting aspect of System Events (the Process Suite) chose to make the GUI Scripting 'keystroke' command send multi-character text strings. I assume he simply called the function in a loop. When I was talking with him (many years ago), I neglected to ask him if there is a limit to the number of characters -- like 256, or 512, or whatever -- or if there are any performance bottlenecks with very long strings.

Perhaps Chris Nebel will spot this message and provide an answer. But, Dave, it would be easy enough to write a script to test it out.

-- 

Bill Cheeseman - email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to Paste into Outlook 2011 using keystorkes/System Events
      • From: Dave <email@hidden>
References: 
 >Kind Of Annoying Droplet Behavior (From: "S. J. Cunningham" <email@hidden>)
 >How to Paste into Outlook 2011 using keystorkes/System Events (From: Dave <email@hidden>)
 >Re: How to Paste into Outlook 2011 using keystorkes/System Events (From: Yvan KOENIG <email@hidden>)
 >Re: How to Paste into Outlook 2011 using keystorkes/System Events (From: Bill Cheeseman <email@hidden>)
 >Re: How to Paste into Outlook 2011 using keystorkes/System Events (From: Dave <email@hidden>)
 >Re: How to Paste into Outlook 2011 using keystorkes/System Events (From: Yvan KOENIG <email@hidden>)
 >Re: How to Paste into Outlook 2011 using keystorkes/System Events (From: Dave <email@hidden>)
 >Re: How to Paste into Outlook 2011 using keystorkes/System Events (From: Dave <email@hidden>)
 >Re: How to Paste into Outlook 2011 using keystorkes/System Events (From: Yvan KOENIG <email@hidden>)
 >Re: How to Paste into Outlook 2011 using keystorkes/System Events (From: Andrew Oliver <email@hidden>)
 >Re: How to Paste into Outlook 2011 using keystorkes/System Events (From: Dave <email@hidden>)

  • Prev by Date: Re: How to Paste into Outlook 2011 using keystorkes/System Events
  • Next by Date: Re: How to Paste into Outlook 2011 using keystorkes/System Events
  • Previous by thread: Re: How to Paste into Outlook 2011 using keystorkes/System Events
  • Next by thread: Re: How to Paste into Outlook 2011 using keystorkes/System Events
  • Index(es):
    • Date
    • Thread