AppleScript Programming/Mail alert

Note: the following will bring your volume low after raising it with the alert.

From anyone (at "Tools->Rules", create a new rule, add criterion such as "Is not junk email", and for an action, choose "Run AppleScript", selecting the script file for the script below):

tell application "Microsoft Entourage"
        set volume 10
        say "You've got mail!"
        set volume 1
end tell

From a specific person (at "Tools->Rules", create a new rule, add criterion such as "From"+"Contains"->bob@yahoo.com, and for an action, choose "Run AppleScript", selecting the script file for the script below):

tell application "Microsoft Entourage"
        set volume 10
        say "You've got mail from Bob!"
        set volume 1
end tell
Last modified on 7 January 2013, at 02:59