Re: Launching script using Rules in Mail
Re: Launching script using Rules in Mail
- Subject: Re: Launching script using Rules in Mail
- From: Andrew Oliver <email@hidden>
- Date: Thu, 24 Jul 2003 10:30:17 -0700
Your script specifically targets "message 1 of in mailbox', therefore it
will always target that specific message and no other.
Instead you need to target the messages that triggered the action.
Unfortunately I don't use Mail.app, so I can't tell you how to do that, but
I'm sure someone else on this list can.
Of course, Apple Help doesn't answer the question (it just refers you to the
Example Scripts folder, none of which are mail action scripts).
Andrew
:)
On 7/24/03 8:06 AM, "Brian Binotto" <email@hidden> wrote:
>
I can not for the life of me figure out how to get an applescript to run
>
from
>
within the Rules of Mail. I know the rules I have set-up are correct, it
>
just
>
will not run the selected applescript.
>
>
Has anyone gotten this to work? Below is the first part of the script I
>
would like Mail to run.
>
>
tell application "Mail"
>
set theMessage to message 1 of in mailbox
>
set theSubject to subject of theMessage
>
set theContent to the content of theMessage
>
set senderAddress to sender of theMessage
>
end tell
>
>
>
>
Thanks for all input.
>
Brian
>
_______________________________________________
>
applescript-users mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/applescript-users
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.