Fix Duplicate/Old Items on “Open With…” List in OS X
While installing Chrome on my new MacBook Pro I encountered a little error and the browser was not installed correctly. I was able to fix the problem by reinstalling Chrome again, however I ended up with a duplicate “Google Chrome.app” on the “Open With” context menu list.
I went online and found this cool little snippet:
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/\ LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local\ -domain system -domain user
All you have to do is copy and paste this into Terminal and run it… (note: it takes a little bit of time for it to run so be patient)
Relaunch Finder (control+option+click on Finder icon in the Dock)…
Ta-da! The duplicate or old items are now gone!
This code should work on both OS X Snow Leopard and Lion… I have not had the need to try it yet, but if you have, please let me know whether the code works on Lion as well. Thanks! 🙂
A reader confirmed that the code works on Lion as well. Thanks for the feedback!
Another commenter confirmed that the code works on Mountain Lion. Thanks for the feedback!