Broken Mail Rule in Mavericks

Mail Rules seem not to evoke an applescript when set to do so automatically.

Set a rule up so it flags a message then evokes an applescript. Mail will flag the message but not call the applescript.

If the Apply Rules menu item is then selected it will run the Applescript.

Really annoying Apple that you have broken this fro Mavericks.

Anyone out there got a workaround?

Hi

Tried experimenting and found that by adding the mail account in the rules preferences is more reliable to call the applescript or any other rule for that matter BUT when the applescript is called it does not process all the script

When this rule is called automatically it will display “working” but then does not process the rest of the script
When highlighted and Apply Rules is applied the script runs normally.


using terms from application "Mail"
	on perform mail action with messages these_messages for rule this_rule
		tell application "Mail"
			set the message_count to the count of these_messages
			repeat with i from 1 to the message_count
				set this_message to item i of these_messages
				display dialog "working"
				set theContent to (content of this_message as string)
				display dialog theContent
				set theSubject to (subject of this_message as string)
				display dialog theSubject
			end repeat
		end tell
	end perform mail action with messages
end using terms from


Whats going on. Can anyone replicate this in Mavericks?

Model: iMac 3.5 GHz i7
AppleScript: 2.6.1 (152.1)
Browser: Safari 534.55.3
Operating System: Mac OS 9.2.x