Re: Why can't I set sender in new outgoing Apple Mail message?
Re: Why can't I set sender in new outgoing Apple Mail message?
- Subject: Re: Why can't I set sender in new outgoing Apple Mail message?
- From: Axel Luttgens <email@hidden>
- Date: Fri, 01 May 2015 17:45:37 +0200
> Le 30 avr. 2015 à 21:28, Michael Grant a écrit :
>
> Any idea why the code below isn't working? The message is created but the sender is not set.
> […]
> tell application "Mail"
> set theOutMessage to make new outgoing message with properties {sender:"email@hidden"}
> end tell
Hello Michael,
I don’t remember whether this was already the case with earlier versions but here, with 10.10.3, I have to set the sender by making use of a "full" email address (i.e., based on an account’s full name in addition to one of its email addresses):
tell application "Mail"
tell (make new outgoing message)
set visible to true
set sender to "Axel Luttgens <email@hidden>"
end tell
end tell
HTH,
Axel
_______________________________________________
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