Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Possible Duplicate:
How do I remove duplicate “Open With” context menu items in Finder.app?

I'm running 10.7.5 and I have noticed a problem with associations between files and applications. The main symptom is that Finder shows more than one copy of the same application to open a file.

At first everything worked, but now the com.apple.LaunchServices.plist file is not updated anymore. In particular, if I launch through terminal lsregister -dump the association appears, but if I open the plist file the association is not present. If I reboot, instead of updating the plist file, the system eliminates the association from the database (the option -dump doesn't show it anymore). I tried to launch lsregister -kill -seed several times, but the situation doesn't change.

How can I permanently fix the associations between files and applications?

share|improve this question

marked as duplicate by bmike Jan 7 '13 at 21:24

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

The LaunchServices database is built with data from as many as four domains. (See 'lsregister --help' for more info on these domains.) You might not be rebuilding the LaunchServices database correctly. This is the command I use to rebuild the database on my Mac:

sudo /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user

If you really want to get into the nitty gritty of file associations (plus a whole lot more) and want a nice GUI to boot try installing RCDefaultApp.

http://www.macupdate.com/app/mac/14618/rcdefaultapp

share|improve this answer
    
I tried running sudo opensnoop -n lsregister, and there were much less lines when -domain local -domain system -domain user was left out. I don't know if the -r or -seed options are needed though. –  ؘؘؘ Oct 10 '12 at 2:21
    
I had to use the command without sudo to clean-up the list. –  BetaRide Mar 20 '13 at 7:36

Not the answer you're looking for? Browse other questions tagged or ask your own question.