3

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.

2

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.

1

This might do the trick. Under ~/Library/Preferences you'll find a file called com.apple.LaunchServices.plist. This file lists the preferred applications to open with for the different formats.

Opening the file with an editor such as TextMate should let you edit the associations.

1

Never say never. You can do that (albeit manually from the command line) with a CLI called lsregister - /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister. It can be used to either register launchers or unregister there. -dump will show you all the present associations, and -unregister can be used to selectively remove.

  • lsregister -f -u /Applications/SomeApp.app/ only removes the application temporarily. The application gets registered again when it is opened. – Lri Mar 6 '13 at 18:47
0

You can't do that. It used to be possible, using something like Open-With Manager, but changes in 10.7 prevented this from working. I've not seen any other hacks to do this since.

0

RCDefaultApp can do it and it has a nice GUI. See this blog post for a quick explanation of how to use RCDefaultApp

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .