Open With Duplicates

Open With Duplicates

I’ve run into a situation where my Open With … command is filled with several duplicates. TextMate, for example, will appear in the list around 15 times. As will several other programs. Some only appear once, others appear multiple times. After confirming that I didn’t have multiple installations of the same program, I hit Google and – after several hit-and-miss attempts – found a solution that works. The following command should clear everything up for you.

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

Unfortunately, I didn’t bookmark or make note of the person who posted this solution. So, whoever you are, thanks!