• 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: Apple Mail ToName Issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Apple Mail ToName Issue


  • Subject: Re: Apple Mail ToName Issue
  • From: DealTek <email@hidden>
  • Date: Fri, 22 Oct 2010 16:52:29 -0700

On Oct 22, 2010, at 2:33 PM, Michelle Steiner wrote:

>
> remove the quotes from missing value; it's not a string.
>
> -- Michelle


Thanks Michelle

I tried your idea but it didn't work - what did I do wrong?

result still says:

To: missing value <email@hidden>


------------------- code

tell application "Mail"

	set theSelectedMessages to the selection
	set eachMessage to item 1 of theSelectedMessages
	set theSender to sender of eachMessage

	set theToName to name of to recipient of eachMessage
	set theToEmail to address of to recipient of eachMessage
	set theAccountName to name of mailbox of eachMessage

if (theToName is missing value)
	set theToName to "TEST"
end if

set theText to "To: " & theToName & " <" & theToEmail & ">"

end tell

----------------------------- end code


--
Thanks,
Dave - DealTek
email@hidden
[db-10]



 _______________________________________________
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: Apple Mail ToName Issue
      • From: Michelle Steiner <email@hidden>
References: 
 >Apple Mail ToName Issue (From: DealTek <email@hidden>)
 >Re: Apple Mail ToName Issue (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Still, script won't run on an older iMac.
  • Next by Date: Re: Apple Mail ToName Issue
  • Previous by thread: Re: Apple Mail ToName Issue
  • Next by thread: Re: Apple Mail ToName Issue
  • Index(es):
    • Date
    • Thread