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: Dave <email@hidden>
- Date: Thu, 25 Feb 2016 20:26:43 +0000
> On 25 Feb 2016, at 20:21, Andrew Oliver <email@hidden> wrote:
>
> 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.
I seem to remember doing this before and someone told me to use the Clipboard.
I’d rather keystroke the whole thing in (but it could be very big), is this a good idea?
> 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)
It isn’t! lol
_______________________________________________
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