View Single Post
Quote:
Originally Posted by SpinalTap View Post
Exact same problem here - I cannot even get the script to throw any events to see what is going on.
I did a little more investigation and it appears that the script does not invoke the on_perform_mail_action when executed against a message. Not sure why, but this is the reason it does not execute the bulk of the script. I have tested by removing all the extra stuff and doing some simple display dialog boxes. Still no luck. The "Middle" dialog box never gets executed.

display dialog "Beginning" buttons "OK" default button "OK"

using terms from application "Mail"
on perform mail action with messages this_message for rule this_rule
display dialog "Middle" buttons "OK" default button "OK"
end perform mail action with messages
end using terms from

display dialog "End" buttons "OK" default button "OK"