Remove Duplicated from “Open with” in OS X

Finder (software)

Finder (software) (Photo credit: Wikipedia)

I quite like the some of the “user-friendly” features that come with OS X. But sometimes they get a bit clogged up. A point in case is the “Open With” menu that appears when any file in the Finder is right-clicked. The idea of the menu is to provide the user with the chance of choosing an alternative programme or application to open a file with, instead of the one by default.

The problem is that sometimes Finder creates multiple copies of the same entry in the menu and although harmless, it is very annoying. So, how can you fix this problem, well do not despair, the command line is your friend:

  • Launch Terminal from the /Applications/Utilities/ directory and following command string onto a single line:
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain user
  • Then, once the previous command has finished (and it may take a while) in order for the command to do its trick type the following in the command line:
killall Finder

Now when Finder has relaunched, all the repeated entries must be gone.