Simple answer: yes, AppleScript can do everything you are looking to do.
But instead of tuning another rule on or off, you have to instead perform all of the actions from the AppleScript script. I am not going to write the script for you, but here are some big hints to get you in the right direction:
Code:
tell application "Proteus"
set currentStatusString to title of current status as string
end tell
display dialog currentStatusString
Here is a good reference to what your AppleScript handler will have to look like:
http://www.macosxhints.com/article.p...30116071118239
And you can get a list of the commands that Mail.app supports by dragging the program icon onto the "Script Editor" icon.