Multiple, errant entries in the "Open With" contextual menu
If you have duplicate applications listed in the "Open With" contextual menu -- an occurence most likely to occur after a system update -- there are a few methods for eliminating them.
A Terminal-based fix involves use of the lsregister command, which can be invoked to perform general maintenance of Launch Services, working to eliminate duplicate applications and other system issues.
Launch the Terminal, located in /Applications/Utilities and enter the command all on one line:
- /System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
Alternatively, this MacFixIt Forums thread harbors and AppleScript with the same effect.
Select the scrip text in the forum, then go to the Application menu (displayed in the menu bar as the name of the broswer you are using), select Services, then Script Edtior, then Make new AppleScript.
Also, note that if you actually do have multiple copies of applications, it can cause a range of problems. We have a tutorial called "Deleting old copies of applications (documents opening with the wrong version, program)" methods for dealing with the situation.
Feedback? Late-breakers@macfixit.com.
Resources

Thread 0 Crashed:
0 <<00000000>> 0xffff934c __bigcopy + 524 (cpu_capabilities.h:194)
1 <<00000000>> 0xffff9188 __bigcopy + 72 (cpu_capabilities.h:194)
I also noticed that icons were getting corrupted, which tipped me off to something being wrong in the LaunchServices framework. So I first logged into another user to make sure it wasn't a system-wide problem (it wasn't), I tried deleting the Caches folder to see if that resolved the problem (it didn't), and I also renamed the entire Library folder to see if that would help (it did).
Then after running this command (because of the corrupted icons), everything is back to normal, even after restoring my old Library folder. Yay!
---
Don't anthropomorphize computers.
They hate that.
As does Maintain's "Cocktail." This thread alerted me to the issue, so tried rebuilding with Cocktail last night. Open with is much faster now.
Minor annoyance, but thought I'd mention it as a side-effect of this "fix"
- by balord December 22, 2007 9:27 AM PST
- Note:
- Like this Reply to this comment
-
(6 Comments)To use in 10.5, "ApplicationServices.framework" should be changed to "CoreServices.framework":
<code>/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user</code>