Duplicate items in Open With Finder

Tutorial: how to remove duplicate apps in OS X’s “Open With” menu

If you usually open some files / documents in OS X by right-clicking and choosing the option “Open With” (“Open With”), you may have come across an image similar to this one:

Duplicate items in Open With Finder

Did you notice the duplicate items? Yeah. I use this form a lot because sometimes I like to open an image file in Preview (Preview); others, in Pixelmator. The same is true with video files: from time to time I want to use QuickTime; others, VLC.

But why does OS X duplicate or even not show the icons of some apps in that menu? This is caused by some corruption of the LaunchServices. This problem can also originate in virtual machines (VMware or Parallels), which leave traces of uninstalled applications. In other words, we are talking about a system bug that, according to Wheat Williams, Apple is already aware of – the problem is registered as Bug ID # 11582257 in the Apple Bug Reporter.

To resolve this, the database LaunchServices it necessarily needs to be rebuilt. And even those who are not familiar with the Terminal (Applications / Utilities /) can follow this tutorial by Cory Bohon, from MacLife.

Check it out:

  1. Open the Terminal.
  2. If you are using OS X 10.5 or higher, copy and paste the command below into Terminal:
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
  1. Press Enter / Return.
  2. Wait for your username to appear followed by $ (in my case, Eduardo $).
  3. Close the Terminal.
  4. Close the Finder window if it is open.

There, problem solved!

It is worth noting, however, that if you are using older versions of OS X, such as 10.3 (Pather) or 10.4 (Tiger), you need to replace the command in step 3 with this one:

/System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user

Hope this helps. ?

[via Daring Fireball]