Removing Duplicate Right Click Open With Items In Mountain Lion 3

Terminal

Share
Removing Duplicate Right Click Open With Items In Mountain Lion

Hey,

When you right click on any item (excluding Folders) in Finder you have the option to pick which applications you want to open the file with. For example with a text file you could open the file in TextEdit, Word and Pages to name a few. Depending on the type of file you are selecting you may have the option of a couple of applications to choose from, or many. Every so often this menu gets cluttered with duplicate items. It doesn’t happen very often but it is really annoying when it does. This tip is going to show you how to remove the duplicate items.

Open Terminal located in Applications > Utilities. In the Terminal window, copy and paste the following into the Terminal window.

/System/Library/Frameworks/CoreServices.framework//Versions/A/\
Frameworks/LaunchServices.framework/Versions/A/Support/lsregister \
-kill -r -domain local -domain user;
killall Finder

The first line will delete the duplicate items from the menu. The second option will stop Finder and relaunch it, thus allowing the Open With menu to be repopulated with the correct, and non duplicate items. Note the backslash (\) allows a new line so it will fit onto the webpage. Normally this will be one long line.

A right click menu with no duplicates.

Its only a simple command. However, for those using Mountain Lion or some older versions of Mac OS X, this trick will work easily in removing those duplicate items. I have only ever used this command twice since I have owned a Mac (since 2008), so its one  you may never use.


If you want to keep up with the latests post from Mac Tricks And Tips I recommend you subscribe to the RSS Feed.

Where To Next?

  • Subscribe To Mac Tricks And Tips

3 Responses to “Removing Duplicate Right Click Open With Items In Mountain Lion”

  1. 1

    Fantastic tip, thanks very much, I’ve tolerated the duplicates for years.
    :)

    Comment By Al on November 25th, at 11:28 pm

  2. 2

    For me, this had the (positive) side-effect of also making the contextual menu appear faster.

    Thanks.

    Comment By Matthew Schinckel on November 26th, at 12:33 am

  3. 3

    This didn’t work for me and caused me to have 3 to 4 apps in the menu after applying.

    What can I do?

    EJ

    Comment By EJ on November 28th, at 10:43 pm