Re: New Recipient in Outlook 2011
Re: New Recipient in Outlook 2011
- Subject: Re: New Recipient in Outlook 2011
- From: "Stockly, Ed" <email@hidden>
- Date: Thu, 15 Oct 2015 19:14:43 +0000
- Thread-topic: New Recipient in Outlook 2011
Here's the routine I use for new messages in outlook. The variable values
are text and lists, and pretty self explanatory. The format for the email
addresses is:{"email@hidden","email@hidden"}
--------------------
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
end tell
>
>
>— Fails on this Line with "error "Microsoft Outlook got an error:
>AppleEvent handler failed." number -10000”
>?????????????????????????????????????????
> make new recipient at (message id myObjectID) with properties {email
>address:{name:"Fred Bloggs", address:myAddAddress}}
_______________________________________________
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