Growl notification for Apple Mail under Snow Leopard
Post ReplyGrowl notification for Apple Mail under Snow LeopardPosted: Tuesday, June 22, 2010 [21:17:49] - 1
If you want to have nice floating notifications on important email messages received by Mail program under Show leopard - first download Growl at: http://growl.info and run the installer. Make sure Mail is Enabled in "System Preferences" under "Growl" pane: Then create an AppleScript: -- Hunter Ford [http://www.cupcakewithsprinkles.com] -- This script arises from the lack of any Growl Support in Mac OS X Snow Leopard (10.6) -- Code inspired by and adapted from James Higgs [http://blog.jameshiggs.com/2009/08/28/growlmail-on-snow-leopard-a-temporary-fix/] as well as those mentioned. tell application "GrowlHelperApp" end tell -- Mail Rule Trigger -- -- Source: Benjamin S. Waldie [http://www.mactech.com/articles/mactech/Vol.21/21.09/ScriptingMail/index.html] using terms from application "Mail" " & growlMessage end using terms from -- *ExtractName* -- -- gathers the name portion from the "From: " line -- -- Source: robJ [http://forums.macosxhints.com/archive/index.php/t-19954.html] to ExtractName(sender_) end ExtractName Compile script (press "Apple+K") and run it first to register with Growl by pressing "Apple+R". Save script in: /Library/Scripts/Mail Scripts/Rule Actions/Growl.scpt (you could save it anywhere else but, to keep tabs on a code this location makes better sense). Then you'll need to setup your Mail rules. In Mail program click "Apple+," (that's comma) and select "Rules" pane. and click on "Add Rule". add as many options as you need to match the message you want to be notified about: Click "OK". You will be presented with message asking you to apply rule to already received messages - click "Don't Apply" close Mail Preferences. You're done! From now-on when you receive an important message - a small floating message will appear on your Mac screen letting you know of a new message. |