Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Watabou

macrumors 68040
Original poster
Feb 10, 2008
3,426
759
United States
I've been noticing that I get a lot of duplicate applications when I right click an item and hover my mouse on "Open with".

For example, if I right click a index.html file, and I open up the "Open with" submenu, I get 10 Webkits(!), 2 Safaris and 2 TextEdits. How do I stop this from happening? I was alarmed at the number of instances of Webkit and I deleted it, thinking that was somehow the problem but nope. I still get duplicate items.

Here is what it shows when I right click a text file. You can see there are duplicates. It's very annoying especially if it's some common filetype like an image. I get a very long list.

Edit: Oh and I did a clean install of ML. Even a restart doesn't fix the issue.
 

Attachments

  • Screen Shot 2012-07-24 at 6.39.55 PM.png
    Screen Shot 2012-07-24 at 6.39.55 PM.png
    96.5 KB · Views: 506
Last edited:
Any chance you've experimented with folder hard-linking (shot in the dark)? I'd run the mdfind command to check if there are other copies hidden somewhere for some reason.

Code:
mdfind "AppleScript Editor"|grep .app$

change "AppleScript Editor" to whatever you want.
 
Any chance you've experimented with folder hard-linking (shot in the dark)? I'd run the mdfind command to check if there are other copies hidden somewhere for some reason.

Code:
mdfind "AppleScript Editor"|grep .app$
change "AppleScript Editor" to whatever you want.

No I haven't and the mdfind command only lists one AppleScript app. I only installed ML two weeks ago so I didn't really tinker with the system.
 
Yep ...

Yeah, I sometimes get this, usually after I just restored an image backup ...


But the list usually reverts back to normal after a reboot ...


You can try these Terminal commands to reset the list (If you are comfortable with Terminal commands ...)

Code:
cd /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/


and then type:


Code:
./lsregister -kill -domain local -domain system -domain user
 
Yeah, I sometimes get this, usually after I just restored an image backup ...


But the list usually reverts back to normal after a reboot ...


You can try these Terminal commands to reset the list (If you are comfortable with Terminal commands ...)

Code:
cd /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/


and then type:


Code:
./lsregister -kill -domain local -domain system -domain user

I have the same issue, but I am not too familiar with Terminal. I am typing the commands and then hitting enter after each one. Is that the process?
 
I have the same issue, but I am not too familiar with Terminal. I am typing the commands and then hitting enter after each one. Is that the process?

I wouldn't type it out if you're not familiar with the terminal. Just copy and paste those above commands and then hit enter after each one.

The problem should go away after that.
 
I wouldn't type it out if you're not familiar with the terminal. Just copy and paste those above commands and then hit enter after each one.

The problem should go away after that.

I meant i'm copying and pasting them!
This is what my terminal looks like after entering the commands separately pressing enter after each.
Screen Shot 2012-07-27 at 7.47.17 AM.png
 
Yeah, I sometimes get this, usually after I just restored an image backup ...


But the list usually reverts back to normal after a reboot ...


You can try these Terminal commands to reset the list (If you are comfortable with Terminal commands ...)

Code:
cd /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/


and then type:


Code:
./lsregister -kill -domain local -domain system -domain user

awesome. worked perfectly. thanks!
 
Yeah, I sometimes get this, usually after I just restored an image backup ...


But the list usually reverts back to normal after a reboot ...


You can try these Terminal commands to reset the list (If you are comfortable with Terminal commands ...)

Code:
cd /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/


and then type:


Code:
./lsregister -kill -domain local -domain system -domain user

Only problem is after reboot, every application is thought to be opening for the first time ever. Any command to revert this back to default?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.