Re: Running Scripts from Mail Rules
Re: Running Scripts from Mail Rules
- Subject: Re: Running Scripts from Mail Rules
- From: Steve Bird <email@hidden>
- Date: Thu, 26 Oct 2017 16:32:55 -0400
> On Oct 26, 2017, at 4:24 PM, Bob Stern <email@hidden> wrote:
>
>> On Oct 26, 2017, Steve Bird <email@hidden> wrote:
>>
>> set S to (extract name from (sender of M) as rich text)
>> say ("You have new mail from " & S)
>
> Did you try deleting “as rich text”? It’s already plain text before the
> coercion. Not sure how the “say” command handles a rich text argument.
1… Yes, I did… I was trying “as text” and the hammer “corrected” me.
2… That’s not where the error is. It never gets to the GOT SENDER speech. The
error is somewhere in the "set Nm to (sender of M)” line, but I can also use
“subject” or “id” and it still doesn’t matter. If I make that line refer to
something besides the message, it flows thru as I would expect.
----------------------------------------------------------------
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
www.Culverson.com (toll free) 1-877-676-8175
_______________________________________________
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