Remove _specific_ items from Finder Open With menu

finder

Is there any way to purge specific applications from the Finder's "Open With" menu? Mine is cluttered with all sorts of applications I'd never choose to open HTML files with (Word, Calibre, all sorts of undesirables; see image). I know there're various tricks to remove duplicates or uninstalled applications, but I'd just like to prune.

Failing that, is there a way to move an app higher in the list (I'd like Sublime Text 2 higher up the list), or simply to bypass the menu and open the file in the two applications I'm actually interested in opening it with (Sublime and Chrome, essentially).

Running 10.7 Lion, if applicable.

Best Answer

You can for example open /Applications/calibre.app/Contents/Info.plist and remove entries from the CFBundleDocumentTypes array. To apply the changes, run sudo touch /Applications/calibre.app/ or /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -f /Applications/calibre.app/ and relaunch Finder.

If the application is signed, it invalidates the code signature. And since 10.8 some applications like TextEdit and Chess have crashed on launch if the Info.plist has been modified.