• 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: Outlook 2011 - Accessing/Removing Recipients
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Outlook 2011 - Accessing/Removing Recipients (From: Dave <email@hidden>)

  • Prev by Date: Re: Why can't I set sender in new outgoing Apple Mail message?
  • Next by Date: Re: Why can't I set sender in new outgoing Apple Mail message?
  • Previous by thread: Re: Outlook 2011 - Accessing/Removing Recipients
  • Next by thread: Outlook 2011 - Accessing/Removing Recipients
  • Index(es):
    • Date
    • Thread