Re: How to Paste into Outlook 2011 using keystorkes/System Events
Re: How to Paste into Outlook 2011 using keystorkes/System Events
- Subject: Re: How to Paste into Outlook 2011 using keystorkes/System Events
- From: Andrew Oliver <email@hidden>
- Date: Thu, 25 Feb 2016 12:21:15 -0800
Given the rest of the script, why do you care about setting the clipboard at all?
If all you’re trying to do is replace the current text (via Cmd-A) with the contents of the clipboard (via Cmd-V), why not just:
keystroke “a” using {command down}
keystroke theContentString
This will have the effect of over-typing the current document with whatever’s in the variable. No clipboard required.
Even better, if the keystroking is too long, just:
set the content of the document to theContentString
(assuming Outlook’s dictionary is in any way sane)
Andrew
:)
_______________________________________________
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