Having multiple duplicates of apps in the “Open With” menu in Mac OS X can get very annoying and quickly make things look messy. This is a problem I run into quite often as I’m constantly installing and uninstalling apps. Fact of the matter is that an app doesn’t need to be listed multiple times in the right-click (control-click) menu.

Inside this article are 2 ways to remove the duplicates that always seem to sneak in.

 

Easily Remove Duplicate “Open With” Entries with Automator

"Open With" automator script remove duplicates

To delete the repeat entries we’re going to turn to Automator, a powerful application that comes pre-installed on all Macs. To keep things simple I’ll stick to just two methods. One method being copy & paste and the other a simple Automator Script.

Removing the duplicate apps for the “Open With” menu is really easy with the Automator script, all you need to do is click the “Run” button. For those that don’t want to download the script, I’ve included the code itself that you can just copy & paste into Terminal.

 

Copy & Paste Method

To delete the repeats with the following code you need to use Terminal. You can find Terminal in your Applications/Utilities folder or by searching for it in Spotlight / Launchpad. Once open enter this code to remove the repeat “Open With” apps:

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

Now in order for the code to take effect Finder will have to be restarted. You can restart Finder by holding down the “alt” key, right-clicking (control-click) on the Finder icon in the Dock and clicking “Relaunch”. Alternatively since you already have Terminal open just enter the following to restart it:

killall Finder

 

Download the Script

delete duplicates from "open with" menu with automator script

“Open With” Automator Script

This is the easiest method, it doesn’t require any messing around in Terminal. What I’ve done is simply inputted the above codes into Automator and then saved it as a script. All you need to do is download it and click the run button. It does the exact same thing as the Terminal method, since it uses all the same code.

When you download and open the script there are two options.

[wpdm_file id=6]

1. You can choose to install the script, which will make is easily accessible from the menu bar at anytime. To run the “Open With” script once installed just go to the menu bar in Finder and click Finder -> Services -> Remove Duplicates in Open With.

2. Or you just run it in Automator which won’t install anything. It’ll simply just remove the multiple app copies in your “Open With” menu and then relaunch Finder.