• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Mail Rule Triggered Script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Looking for AppleScript to Log Websites Visited
  • Next by Date: Re: Mail.app selection of front window
  • Previous by thread: Re: Problem suppressing PhotoShop 7 dialogs
  • Next by thread: need help calling my applescript (that uses system events gui scripting) from cocoa app
  • Index(es):
    • Date
    • Thread