Re: Apple Mail ToName Issue
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