Re: Mail Rule Triggered Script
Re: Mail Rule Triggered Script
- Subject: Re: Mail Rule Triggered Script
- From: email@hidden
- Date: Fri, 28 Mar 2003 11:22:03 -0800
On Tuesday, February 25, 2003, at 02:33 PM, cricket wrote:
The way rule execution works is that your handler will be called once
per message that matches. In future releases of Mail, you could write
a script to put in the Scripts menu and use the |SelectedMessages| key
to access all the selected messages.
I might like to automate things on my iMac based on receiving mail
messages. E.g. while at work, send a message, Applescript sees it and
does XYZ. (Pops up a dialog, prints it out, etc.) In this case, Mail
would be set to check for new messages every N minutes.
With "on perform_mail_action", how is execution controlled? I.e. do I
run an Applescript and it sits there forever waiting, or do I associate
it somehow with Mail and Mail kicks it off each time there are new
messages? Does the script hear about every new mail message that comes
in, or is the rule filtering done first and the script only hears about
messages that match? Can the rule do things like transferring the
message first, or does the rule action happen after the Applescript is
called? (E.g. maybe I'd want to delete the message after processing it
with the script.)
John
_______________________________________________
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.