Remove Duplicates and Errors from “Open With” Menu

   Posted by David Kirk in Apple Mac

After using your Mac for a long time, the “Open With” menu will become populated with duplicates and nonexistent applications. Through a simple command these can be removed.

Chopi recently sent me the following question:

“When I try to open images in my MacBook by right-clicking and using the Open With menu, I have multiple duplicate entries. Additionally, several applications are listed there that are no longer installed. Is there a simple way to clean up the Open With menu?”

If you are running a modern version of OS X including Snow Leopard, Lion, or Mountain Lion, the following terminal command will rebuild the Open With menu.

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

Copy the above code in its entirety. Open a terminal window and paste the code into the command line. After you hit enter, there will be a lengthy pause while the menus are rebuilt. Some users report needing to reboot or relaunch finder to see the changes; however, it has always worked with me immediately after running the command.

If you need to relaunch finder, press control+alt and then click on the Finder icon in you dock. Select Relaunch from the menu that appears.

press relaunch from the finder menu

Here is an example of my Open With menu before and after running this command.

before and after

 

About David Kirk

David Kirk is one of the original founders of tech-recipes and is currently serving as editor-in-chief. Not only has he been crafting tutorials for over ten years, but in his other life he also enjoys taking care of critically ill patients as an ICU physician.
View more articles by David Kirk

The Conversation

Follow the reactions below and share your own thoughts.

One Response to “Remove Duplicates and Errors from “Open With” Menu”

  1. November 06, 2012 at 1:37 pm, Ken said:

    I used your terminal command and it worked but…..I have one program that takes half or the screen. Is there a way to remove the additional dialogue attached to the program shortcut?

    Reply

Leave a Reply