I just did a fresh install of Mountain Lion on an empty partition. How can I prevent the programs of the previous install from being shown in the contextual menus in Finder ? I already asked Spotlight not to index that partition, but I still have references to them in the Open With menus.
MacOS – How to prevent OS X from launching programs from another disk
findermacos
Related Question
- MacOS – OS X Lion, Moutain Lion, Mavericks, Yosemite: deep sleep on low battery leads to crash
- MacOS – How to prevent OS X from automatically installing app files on the drive
- MacOS – Fresh install of OS X with AppStore version
- MacOS – Dual Boot OSX on Retina MBP 15
- MacOS – How to extract the Mountain Lion installer from the recovery partition
- MacOS – Where did folder “merge” or “keep both” go in OS X 10.9 Mavericks
- How to exclude Mail messages from Finder search
- Disable share (email, message, airdrop) on Finder and Safari
Best Answer
Try rebuilding the launch services database using the
lsregister
command. That database provides the information for the open menu, etc as noted in How to rebuild the LaunchServices database from Macworld's Mac OS X Hints. Rebuilding the launch service database while running from the newly installed partition should fix the problem of trying to open Applications on the other drive partition.For OS X 10.6 and later run:
For OS X 10.5 and older run:
If the problem persists after running the above command, try un mounting your original partition before running the above command again. Additionally, as noted on the hints article and when running the
lsregister
command with no arguments there is some helpful output that will allow further customization to specify where to look for Applications, etc.