One drawback of the ‘Open With’ menu is that, over time, it can get very long, as you install and remove applications on your Mac. It can also start to display duplicates of applications. For instance, my ‘Open With’ menu displays four entries for Photoshop even though I only have one version of Photoshop on my Mac. The ‘Open With’ menu can fill up with duplicates each time you create a clone of your startup drive or mount drives that contain copies of applications. Sometimes it seems to happen just because in the dead of night, a dog bayed at the full moon.

Resetting the ‘Open With’ Menu

Resetting the ‘Open With’ menu will remove duplicates and ghost applications (ones you have deleted) from the list. You reset the ‘Open With’ menu by rebuilding the Launch Services database your Mac maintains. There are multiple ways to rebuild the Launch Services database, including third-party system utilities like Cocktail and Onxy.

If you don’t own a system utility that can rebuild the Launch Services database, don’t worry; you can perform the rebuild yourself using Terminal.

Using Terminal to Rebuild the Launch Services Database

Launch Terminal, located at /Applications/ Utilities/.

For OS X 10.5.x and later, enter the following at the Terminal prompt:

For OS X 10.3.x - 10.4.x, enter the following at the Terminal prompt:

The above is one command and is entered on a single line. You can simply copy/paste the above command into Terminal, then press Return/Enter to execute the command. If you have difficulty selecting the command above, triple-click the command text.

The rebuild process can take a minute or two. Once the Terminal prompt returns, you can quit Terminal.

Now when you use the ‘Open With’ menu, you should see an application list that’s limited to the applications currently installed on your Mac, with no duplicates or ghosts.

Reference

Launch Services

lsregister man page