Sometimes after updating to a newer version of the application in the menu Open in app the same item appears twice. The problem affects programs downloaded from any source and even those distributed through the Mac App Store. I myself experienced a similar inconvenience recently when updating the popular image editor Pixelmator.
How to remove unwanted duplicates? Quite simply. Open Terminal and enter the following command:
cd /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support
Command cd (change directory) only changed the current directory. Now enter another command, this time eliminating duplicates:
./lsregister -kill -domain local -domain system -domain user
Wait a few seconds for the cleanup to complete. Then you can see for yourself that each application is in the context menu Open in app an orphan. If you were expecting a longer tutorial, we have to disappoint you. This cosmetic change is (thankfully) a matter of just two commands.
[do action="sponsor-counseling"/]
Heh thanks Dan guys :)
Great, thanks!! :)
Luxury Daniel … normally the article of the year from my point of view … it’s such a no-brainer and will solve a huge problem for someone … great :)
Is there something similar about the situation where the app icon is missing there as well?
Great tip, thanks, got rid of a lot of ballast. I would just like to try to find some way to write the first command on the website so that it is in its entirety on the page and remember that typing the first letters of the subdirectory in the cd command and pressing tab automatically completes the name existing on the disk, if it is unique. If it doesn't do anything, add another letter and TAB again.
I tried to remove them using this tutorial.
Without success, but in the discussion everyone praises that it works, so I think: maybe you have to replace the term "user" with the name of the home folder.
Of course without success, but now I'm afraid that I did something stupid in the system. (it's 10.8.2)
Is the fear justified?
Can I somehow return it to its original form?
It doesn't work for me either, but this one does.
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user