10.6: Re-Enable GrowlMail in Mail 4.4
Nov 11, '10 07:30:00AM
Contributed by: petersconsult
It seems like, with every new version of 10.6.x, GrowlMail gets disabled by Mail.app. Sure enough, this has happened again with 10.6.5 and Mail 4.4.
Rather than wait until someone posts a patch to get it working again, I figured I'd find out what needs to be done, and how to do it.
Thanks to Paul Kehrer's previous posts, which have been summarized in this previous hint, it is possible to fix this using a slightly different process. This method should continue to work for future revisions as well, at least with Snow Leopard.
GrowlMail ceases to function because it has a list of supported versions of Mail.app and the Message framework. Since Apple updates these apps and the version numbers change, GrowMail thinks it is no longer compatible.
BTW, whether it actually is compatible or not is not the topic here; this is just to allow it to run again -- whether it actually works is a different can of beans.
The first thing to do is to get the current UUID's for Mail.app and Message.framework by looking in their respective info.plist files:
In the case of 10.6.5, they are, respectively:
defaults read /Applications/Mail.app/Contents/Info PluginCompatibilityUUID
defaults read /System/Library/Frameworks/Message.framework/Resources/Info PluginCompatibilityUUID
Then, you need to add them to the info.plist file inside the 'GrowlMail.mailbundle' bundle. Depending on where you installed it, this bundle will be found either in:
For some reason, every time I used defaults write with the -array-add option, it messed up my info.plist file, so I did it using BBEdit. If you don't have BBEdit, TextWrangler is its little sibling, and it's free. Otherwise, you can just use TextEdit. [crarko adds: For some reason, when you edit the plist by hand this way it works.]
Locate the key called SupportedPluginCompatibilityUUIDs and add the two strings to it. The end result should look like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
[crarko adds: I tested this, and it worked for me as described. GrowlMail 1.2.2 (the current version, updated last July) both loaded and provided alerts as expected. The key new step here was editing the .plist file by hand, the previous method of using
is not working correctly, for some mysterious reason.]
$ defaults write ~/Library/Mail/Bundles/GrowlMail.mailbundle/Contents/Info Suppor tedPluginCompatibilityUUIDs -array-add "the_new_number"
Mac OS X Hints