Re: Sierra mail problem
Re: Sierra mail problem
- Subject: Re: Sierra mail problem
- From: Mike Matthews <email@hidden>
- Date: Mon, 21 Nov 2016 21:01:00 -0800
On Nov 8, 2016, at 4:42 AM, Jeremy Roussak <email@hidden> wrote:
I’ve a script which has been working very well for a long time which now fails under Sierra. The code is
tell application "Mail" activate set msg to make new outgoing message with properties {visible:true, sender:"Jeremy Roussak <email@hidden>", subject:(caseName & ", " & caseNumber), content:timeText} set msg's message signature to signature "kings"
The offending line is the message signature line. There is definitely a signature “kings”, but Mail doesn’t want to provide access to it.
tell application "Mail" get signatures end tell returns
{signature "default" of application "Mail", signature "kings" of application "Mail”}
but
tell application "Mail" set sigs to get signatures properties of second item of sigs end tell
gives
error "Mail got an error: Can’t get signature \"kings\"." number -1728 from signature “kings"
Any ideas gratefully received!
Jeremy
Jeremy Roussak
— Despite lots of webpages that show the Applescript command to set a signature for an outgoing message, I don’t think it works. I just spent a good hour trying to make it work in Sierra and it never works.
So, based on your email and the many other webpages that exist, this must be a bug in AppleScript in Sierra. Your experience and all those other web pages can't all have been wrong. — mm |
_______________________________________________
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