Fixing WideMail after OS update

I created a little script for myself to make it easier to extract the new compatibility UUID’s from Mail.app and add them to WideMail so that it does not get disabled as an unsupported plugin. I cannot guarantee it will always work (it might actually get really broken at some point), but it does confirmed work for upgrades to OS X 10.6.4 and OS X 10.6.5.

#!/bin/sh
#
# Little script to find the UUID's of Mail.app after an OS upgrade
# and insert them into the WideMail plug-in
#
newMailUUID=$(defaults read /Applications/Mail.app/Contents/Info PluginCompatibilityUUID);
newMsgUUID=$(defaults read /System/Library/Frameworks/Message.framework/Resources/Info PluginCompatibilityUUID);
defaults write
[path_to_widemail_bundle]/Contents/Info SupportedPluginCompatibilityUUIDs -array-add "$newMailUUID";
defaults write
[path_to_widemail_bundle]/Contents/Info SupportedPluginCompatibilityUUIDs -array-add "$newMsgUUID";
#
# EOF


Layout gets a bit screwed, but every line end with a ‘;’. Widemail is typically installed under /Users//Library/Mail/Bundles/WideMail.mailbundle. The same principle obviously works with plugins like GrowlMail. I hope this helps some people.

Until next time. Happy