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: Yvan KOENIG <email@hidden>
- Date: Thu, 25 Feb 2016 18:29:19 +0100
What if you use what I gave:
on setOutlookContent:(theContentString as string)
tell application id "com.microsoft.Outlook" activate set myClipboard to the clipboard
set the clipboard to theContentString # MOVED tell application "System Events" to tell process "Microsoft Outlook" # CHECK THE PROCESS NAME, I DON4T USE MERDOSOFT PRODUCTSset frontmost to true keystroke "a" using {command down} keystroke "v" using {command down} end tell
set the clipboard to myClipboard end tell
end setOutlookContent:
on run get my setOutlookContent:("HELLO BRAVE NEW CONTENT") end run
Yvan KOENIG running El Capitan 10.11.3 in French (VALLAURIS, France) jeudi 25 février 2016 18:29:14
|
_______________________________________________
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