Re: Apple Mail ToName Issue
Re: Apple Mail ToName Issue
- Subject: Re: Apple Mail ToName Issue
- From: DealTek <email@hidden>
- Date: Sat, 23 Oct 2010 18:48:49 -0700
On Oct 23, 2010, at 12:04 PM, Michelle Steiner wrote: Now that I've had the time, the reason is very obvious, and shows why my solution will not always work. There may be more than one "to:" addressees in a message. Therefore, name of to recipient of eachMessage returns a list of the name of every "To:" addressee. If there is only one "To:" addressee, the result is a list containing only one item.
If there are more than one "To:" addressees, my solution will fail.
You will need to decide how to handle the case with multiple "To:" addressees in your script. If you're sure that the messages you will be handling have only one, there's no need to change anything, but you still might want to test for multiples just in case.
Ok - that makes good sense - thanks again for explaining this so clearly. --
|
_______________________________________________
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