De-dupe “Open With…”

A few weeks ago, I started seeing multiple entries for Pixelmator in the “Open With…” area of my Finder’s contextual menu. And while I thought it was weird, I didn’t find it too annoying. So I just ignored it.

Then, last night, I saw multiple entries for Simple Comic when I was trying to open a compressed file in another app. So I did a little digging and found this simple one-line fix over at IT Pixie:

View the code on Gist.

Just copy & drop that into your terminal app of choice and let it run. Once it’s all done, Control + Option + Click the Finder icon in your dock and select “Relaunch”. Once the finder comes back, “Open With…” should be all clean.

I’m mostly saving this here for my own benefit, but maybe it’ll help at least one other person out there.

Source