Temporary fix for GrowlMail/Mail 5.3 issues

152 views
Skip to first unread message

Jacob Desch

unread,
Oct 19, 2012, 5:32:27 PM10/19/12
to growlmai...@googlegroups.com
I've come up with a temporary solution while GrowlMail and Mail 5.3 still refuse to play nice. I've managed to slap together an AppleScript that will notify you of new email when one comes in. It doesn't have the name or subject or anything like that in the notification, but it should at least notify you when one comes in (something that Mail really sucks at if you don't have Mountain Lion or GrowlMail). Here's the script. Open up script editor (Utilities>AppleScript Editor), paste this in and save it wherever you please:

tell application "System Events"

set isRunning to (count of (every process whose bundle identifier is "com.Growl.GrowlHelperApp")) > 0

end tell


if isRunning then

tell application id "com.Growl.GrowlHelperApp"

-- Make a list of all the notification types 

-- that this script will ever send:

set the allNotificationsList to ¬

{"Growl-ish Mail Notification"}

-- Make a list of the notifications 

-- that will be enabled by default.      

-- Those not enabled by default can be enabled later 

-- in the 'Applications' tab of the Growl preferences.

set the enabledNotificationsList to ¬

{"Growl-ish Mail Notification"}

-- Register our script with growl.

-- You can optionally (as here) set a default icon 

-- for this script's notifications.

register as application ¬

"Growl-ish Mail" all notifications allNotificationsList ¬

default notifications enabledNotificationsList ¬

icon of application "Mail"

--       Send a Notification...

notify with name ¬

"Growl-ish Mail Notification" title ¬

"Yaaaaar!" description ¬

"New mail spotted of the port bow, ye scalawag!" application name "Growl-ish Mail"

end tell

end if

Then, create a new rule in Mail to apply to every message (Preferences>Rules) that opens the script you just created. Boom. You're done. New mail comes in, you get a notification.

I'm by no means an AppleScript developer, so like I said, it won't bring in the message title or the subject or anything like that, but it will at least notify you. Hopefully this will help those looking for a temporary fix while GrowlMail is updated.

Reply all
Reply to author
Forward
0 new messages