Mac OS X - Eliminate 'Open With' duplicates

This article describes how to get rid of duplicate entries in the Mac OS X Finder window, i.e., when you right-click on a file, then choose Open With, and you see applications repeated in the Open With list.

Create this alias:

# Quick way to rebuild the Launch Services database and get rid
# of duplicates in the Open With submenu.
alias fixopenwith='/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user'

Then run it.

You can also save this to your ~/.bash_profile so the alias will be available to you in the future.