• On CHOW: Why is ginger ale so popular on planes?
advertisement
October 12, 2007 10:20 AM PDT

Multiple, errant entries in the "Open With" contextual menu

by CNET staff

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

  • MacFixIt Forums thread
  • "Deleting old copies of applications (documents opening with the wrong version, program)"
  • Late-breakers@macfixit.com
  • More from Late-Breakers
  • Recent posts from MacFixIt
    iTunes 10 user interface sees some minor changes
    Apple seeds iOS 4.1 Gold Master to developers
    Possible fix for Harman Kardon iSub problems with PowerPC Macs
    Precautions to take before installing iTunes 10
    A reminder on how to reset your Mac's system password
    Mail messages appearing blank
    Adobe Lightroom update brings direct Facebook publishing; Camera Raw 6.2 released
    Weekly troubleshooting utilities update
    Add a Comment (Log in or register) (6 Comments)
    • prev
    • next
    by sim_X October 12, 2007 4:59 PM PDT
    This hint could not have come at a better time. Just last night I was having trouble with applications crashing almost immediately upon launch, and coreservicesd kept crashing upon login with the following errors:

    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!
    Reply to this comment
    by WhiteDog October 12, 2007 6:20 PM PDT
    Yes, thank you. I've long been looking for a solution to the clutter in the Open With applications list. It's actually easier to use this terminal script than creating an Apple Script for the job.

    ---
    Don't anthropomorphize computers.
    They hate that.
    Reply to this comment
    by Dave.Silver October 13, 2007 1:57 AM PDT
    The freeware app Maintenance 1.1.6 allows you to reset the launch services database with one click.
    Reply to this comment
    by Jim Sick October 13, 2007 1:57 AM PDT
    <class="merchant"><span>&#62;</span><div class="datestamp"><i>This is a reply to a previous comment by Dave.Silver</i></div></class><br />
    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.
    Reply to this comment
    by luomat October 15, 2007 12:39 PM PDT
    FYI after you do this, you will see the prompt "You are launching application FOO for the first time" every time you launch an app by double clicking on a file. That will go away after the first time for each app.

    Minor annoyance, but thought I'd mention it as a side-effect of this "fix"
    Reply to this comment
    by balord December 22, 2007 9:27 AM PST
    Note:
    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>
    Reply to this comment
    (6 Comments)
    • prev
    • next