Re: Outlook 2011 - Accessing/Removing Recipients
Re: Outlook 2011 - Accessing/Removing Recipients
- Subject: Re: Outlook 2011 - Accessing/Removing Recipients
- From: Christopher Stone <email@hidden>
- Date: Thu, 30 Apr 2015 23:11:06 -0500
On Apr 30, 2015, at 10:06, Dave <email@hidden> wrote:I’m trying to remove a recipient from an Outlook Email, using the Script below which doesn’t work.
______________________________________________________________________
Hey Dave,
A whose clause appears to be useless in this case.
This works for me:
----------------------------------------------------------------------------------- tell application id "com.microsoft.Outlook" set _msg to item 1 of (get current messages)
tell _msg repeat with theRecipient in (get its recipients) if address of (get theRecipient's email address) = "email@hidden" then delete theRecipient return end if end repeat end tell
end tell -----------------------------------------------------------------------------------
Note that I had to use an explicit get in several cases.
-- Best Regards, Chris
|
_______________________________________________
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