Thursday, September 20, 2012

Mail unread menu and 5.3

Another thing that broke on an OSX upgrade was mail unread menu (http://loganrockmore.com/mailunreadmenu/) which I really like.  So with a little help from http://stib.posterous.com/how-to-fix-unsupported-plugins-after-upgradin I was able to write the following script (though you can cut and paste them directly into a Terminal (Applications -> Utilities -> Terminal) window).
#! /bin/sh

a=`defaults read /Applications/Mail.app/Contents/Info PluginCompatibilityUUID`
b=`defaults read /System/Library/Frameworks/Message.framework/Resources/Info PluginCompatibilityUUID`

for i in ~/Library/Mail/Bundles*/MailUnreadMenu.mailbundle/Contents/Info.plist
do
    echo "$i"
    echo "${i%%.plist}"

    defaults write "${i%%.plist}" SupportedPluginCompatibilityUUIDs -array-add "$a";
    defaults write "${i%%.plist}" SupportedPluginCompatibilityUUIDs -array-add "$b";
    plutil -convert xml1 "$i"
done
Then a
mv ~/Library/Mail/Bundles\ \(Disabled\)/MailUnreadMenu.mailbundle/ ~/Library/Mail/Bundles
Made things right again.

2 comments:

Matt Springer said...

SO happy that this was posted, it worked for me. Thanks Steve. Can't imagine why Apple continues to be not as good as Microsoft in signaling unseen mail messages...

Dan Criel said...

Thank you for posting this! Very helpful.