• 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: Dave <email@hidden>
  • Date: Thu, 30 Apr 2015 17:13:54 +0100

> On 30 Apr 2015, at 17:04, Axel Luttgens <email@hidden> wrote:
>
>
>> Le 30 avr. 2015 à 17:06, Dave a écrit :
>>
>> Hi All,
>>
>> I’m trying to remove a recipient from an Outlook Email, using the Script below which doesn’t work.
>>
>> Could someone tell me what I am doing wrong? It doesn’t even detect “email@hidden” in the “if” statement, even though the log shows it as being there?
>
> Hello Dave,
>
> Yes, that’s often a bit surprising… ;-)
>
>
>> […]
>> 		repeat with myEmailAddress in myEmailAddressList
>> 			log "myEmailAddress: " & myEmailAddress
>> 			if myEmailAddress is equal to "email@hidden" then
>
> Here, on each iteration, myEmailAddress is a reference (i.e "item X of myEmailAddressList"); see:
>
> 	https://developer.apple.com/library/mac/documentation/AppleScript/Conceptual/AppleScriptLangGuide/reference/ASLR_control_statements.html#//apple_ref/doc/uid/TP40000983-CH6g-128481
>
> Strictly speaking, its value is not of class text.
> On the other hand, the equality operator takes the classes of its operands into account:
>
> 	https://developer.apple.com/library/mac/documentation/AppleScript/Conceptual/AppleScriptLangGuide/reference/ASLR_operators.html#//apple_ref/doc/uid/TP40000983-CH5g-124095
>
> As a result, this one should be fine:
>
> 	if contents of myEmailAddress is equal to "email@hidden” then

If starts with  "email@hidden” works too, which is really puzzling because there is nothing after this string, so “-“ should work. Go figure!



 _______________________________________________
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>)
 >Re: Outlook 2011 - Accessing/Removing Recipients (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: Outlook 2011 - Accessing/Removing Recipients
  • Next by Date: Re: access violation in OS X 10.10.3
  • Previous by thread: Re: Outlook 2011 - Accessing/Removing Recipients
  • Next by thread: Re: Outlook 2011 - Accessing/Removing Recipients
  • Index(es):
    • Date
    • Thread