Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Attach AppleScripts to rules' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Attach AppleScripts to rules
Authored by: morgion on Jun 19, '04 11:33:36AM
I might be wrong, but I think an AppleScript in a Mail rule actually run BEFORE other actions in the same Rule. This is VERY annoying, and I'd like to get around the limitation, if possible.

I've customized this script to say the mailbox name of the message; this is shorter and usually has more immediate relevance for me than the sender's name. Very easy to do using the following:

set thisMailbox to name of mailbox of thisMessage as string
say "[[volm 0.15]]" & thisMailbox using "Bruce"
The script is in a few different Rules I have set up for mailing lists, etc. These Rules have common Conditions and Actions:
1. Identify a message by sender name and/or subject line.
2. Move the message to a specific mailbox.
3. Run the customized script.

When a matching message arrives, the script runs, and always says "Inbox", THEN the new mail sound plays. When I check for the message, it's never in the Inbox; it's always been moved to the appropriate mailbox.

How can I get this script to run AFTER the message has been moved, and preferably after the new mail sound?

[ Reply to This | # ]

AppleScripts execute before other actions
Authored by: hombre on Jan 09, '05 03:51:03PM

I cannot find any way around AppleScripts executing before other actions, even if those actions come before the script in the rule.

This strikes me as an embarrassing state of affairs worthy of filing a bug with Apple.

If someone has found a workaround, please post it.

[ Reply to This | # ]