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.