Q: Mail Rules - Mannually Work - Don't Run Automatically New Mail
Hello:
On OS X 10.9.4 - I can not get an Apple Mail Rule to run Automatically when new Email arrives. I can manually apply the Rule and it works. I can make a changes to Rule, such as Bounce Icon, and apply the change and the Rule works. But the Rule will never run Automatically when new Email arrives.
I have only one Rule, so there is no interference from other Rules. I have tried setting the one Rule to look at only the one Email Account (a POP account) the rule applies to. The account is unique to computer running the Rule. No other computer system accesses or uses that POP Email Account.
I have tried suggestion of setting condition of "Every Message". Also setting Mail from Automatic to Check every Minute. Still no Joy.
Rebuilding Mailboxes of all accounts, including Account the Rule involves did not help. Deleting all the Rule plist files and allowing Mail to recreate those files, then remaking one Rule did not fix the problem.
The one Rule does run an AppleScript which looks at Emails, grabs Subject line, and passes Subject line onto a Shell script. Perhaps, the Rule won't run Automatically do to some bug in AppleScript, but runs perfectly fine when the one Rule is invoked Manually?
Although I have tried about three different versions of the AppleScript, and none will run Automatically, but the would run when the one Rule is invoked Manually...
One of the tried AppleScripts set to run by the one Rule...
______________________________________________________________
using terms from application "Mail"
on perform mail action with messages theMessages for rule theRule
tell application "Mail"
repeat with eachMessage in theMessages
set this_subject to subject of eachMessage
log this_subject
do shell script "afplay '/System/Library/Sounds/Basso.aiff'"
do shell script "/bin/ksh /Users/astirusty/Read_Test/Mail_Run.tst " & quoted form of this_subject
end repeat
end tell
end perform mail action with messages
end using terms from
______________________________________________________________
Thanks,
astirusty
Posted on Jun 18, 2015 5:14 PM