• 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: "Stockly, Ed" <email@hidden>
  • Date: Fri, 26 Feb 2016 18:33:33 +0000
  • Thread-topic: How to Paste into Outlook 2011 using keystorkes/System Events



Isn't it a way to set the content of the target item with an instruction like : set contents of the target item to theDatas ?

That's what I was thinking. Here's the handler I use to make a new message in outlook.

The addresses are lists of text. {"email@hidden"} This could easily be modified to accomodate lists of lists {"Person's Name", email@hidden"}

The subject is one line of text, the body is text.

If it's an existing outgoing message window as opposed to a new message, this can be adapted for that as well.


on SendMessage(toAddresses, ccAddresses, bccAddresses, messageSubject, messageBody)

  set AppleScript's text item delimiters to ", "

tell application "Microsoft Outlook"

set the newMessage to (make new outgoing message with properties {content:messageBody, subject:messageSubject})

repeat with thisAddressee in toAddresses

make new recipient at newMessage with properties {email address:{name:"", address:thisAddressee}}

end repeat

repeat with thisAddressee in ccAddresses

make new cc recipient at newMessage with properties {email address:{name:"", address:thisAddressee}}

end repeat

repeat with thisAddressee in bccAddresses

make new bcc recipient at newMessage with properties {email address:{name:"", address:thisAddressee}}

end repeat

set thisMessage to open newMessage

activate

end tell

end SendMessage



 _______________________________________________
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

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>)
 >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>)

  • Prev by Date: Re: AppleScript Script Editor Crashing Problem
  • Next by Date: GUI scripting
  • 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