• 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: Dave <email@hidden>
  • Date: Thu, 25 Feb 2016 21:26:49 +0000


On 25 Feb 2016, at 21:19, Bill Cheeseman <email@hidden> wrote:


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.

I’ve done that already and it *seems* to work, but I’m not sure how long the field can get. I’ve added a switch to select which version to use, so its easier to switch back and forth, I as asking if it was wise to do so…. For instance the Script worked when run from the Script without the set frontmost to true, then Yvan explained why it was a good idea to include it…….


 _______________________________________________
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: Yvan KOENIG <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>)
 >Re: How to Paste into Outlook 2011 using keystorkes/System Events (From: Bill Cheeseman <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