• 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
Mail Recipients
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mail Recipients


  • Subject: Mail Recipients
  • From: Luther Fuller <email@hidden>
  • Date: Sun, 09 Dec 2012 09:04:25 -0600

While trying to fix a problem in a script, yesterday, I encountered a problem (bug?) in Mail.
I noticed that messages copied into the Finder showed a comment like this …

missing value <name@address>

These comments are recent, so I presume that they started appearing after I upgraded to Lion.

I fixed my script to avoid the "missing value" (I just leave that blank), but I can't avoid Mail returning missing value for the name of a recipient. Something seems to be wrong with Mail.

Here is the script I used for testing in Smile …

tell application "Mail"
set selMsgList to selection
set msg to (item 1 of selMsgList)
set recipientList to (to recipients of msg)
set recipientList to recipientList & (cc recipients of msg)
set recipientList to recipientList & (bcc recipients of msg)
--
set recipientText to ""
repeat with i from 1 to (count items of recipientList)
(item i of recipientList)
((name of the result) as Unicode text) & " <" & ((address of the result) as Unicode text) & ">" & return
set recipientText to recipientText & the result
end repeat
end tell
log recipientText & return

I have a message which logs "missing value <email@hidden>",
but the message, when viewed in Mail shows "Fuller X Luther <email@hidden>".
The "X" was added to my Address Book a few minutes ago as a test. (and will soon be removed)
Mail seems to be looking-up names in the Address Book and, perhaps, returning 'missing value' when the look-up fails.

One message logs "missing value <email@hidden>",
but the message displays "Applescript Users <email@hidden>".
Other messages do log recipients correctly, for example:
AS Users List <email@hidden>
applescript Users <email@hidden>
None of these matches my Address Book (which shows "AppleScript Users").

Has anyone seen this? Have any ideas?


 _______________________________________________
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

  • Follow-Ups:
    • Re: Mail Recipients
      • From: Luther Fuller <email@hidden>
    • Re: Mail Recipients
      • From: Christopher Stone <email@hidden>
    • Re: Mail Recipients
      • From: "koenig.yvan" <email@hidden>
  • Prev by Date: Re: iTunes 11 - how does it works with pre existing applescripts?
  • Next by Date: Re: Mail Recipients
  • Previous by thread: iTunes 11 - how does it works with pre existing applescripts?
  • Next by thread: Re: Mail Recipients
  • Index(es):
    • Date
    • Thread