Go Back   The macosxhints Forums > OS X Help Requests > System



Reply
 
Thread Tools Rating: Thread Rating: 4 votes, 5.00 average. Display Modes
Old 06-22-2004, 09:10 AM   #1
jyncroft
Triple-A Player
 
Join Date: Feb 2003
Location: OR
Posts: 51
Removing duplicate entries for applications in 'Open With...' menu

Hello all,

During the recent discussion surrounding the security flaws in OS X, there was a tip (I think it was on MacInTouch) about how to reset the launch services so that it was as if each application was being launched for the first time. If I remember correctly, this had the side-effect of removing duplicate application entries in that contextual menu.

I've suddenly noticed that I now have duplicate entries for just about every application that shows up in that list. How do I get rid of them?

Thanks, Jennifer
__________________
--
MacBook Pro
8 GB RAM
jyncroft is offline   Reply With Quote
Old 06-29-2004, 09:38 PM   #2
nchen
Prospect
 
Join Date: Oct 2003
Posts: 28
I cannot remember where I got this from but all credits go to the original author:

If your "Open With" menu shows applications that are no longer installed, or shows some of them as duplicates, you can use the following Terminal command to rebuild your LaunchServices database:

/System/Library/Frameworks/ApplicationServices.framework/\
Frameworks/LaunchServices.framework/Support/lsregister \
-kill -r -domain local -domain system -domain user

just copy and paste into terminal and let it run

Or if you just want to shorten the Open With... then maybe this will help:

http://www.macosxhints.com/article.p...ery=info.plist

Keep this stored in a stickies or something, you would want to be able to find it again next time.
nchen is offline   Reply With Quote
Old 06-30-2004, 12:26 AM   #3
jyncroft
Triple-A Player
 
Join Date: Feb 2003
Location: OR
Posts: 51
Thanks, that *was* what I was looking for. I went to try it out and low and behold, I no longer had duplicate entries! Argh... but I guess I shouldn't be complaining.

As fate would have it, I got the same info today via the Apple discussion post I made (got to cover all my bases, right?) and have already saved the information in Circus Ponies NoteBook.

Thanks again, Jennifer
__________________
--
MacBook Pro
8 GB RAM
jyncroft is offline   Reply With Quote
Old 11-16-2004, 10:15 AM   #4
seanasy
Prospect
 
Join Date: Nov 2004
Posts: 10
Thank you! This has been bugging me for a while. In my case, a relaunch of the Finder was also needed.
seanasy is offline   Reply With Quote
Old 06-24-2005, 04:34 PM   #5
bassi
Major Leaguer
 
Join Date: Jan 2002
Location: Paris, France
Posts: 498
Reformat, for ease of use

Code:
/System/Library/Frameworks/ApplicationServices.framework/\Frameworks/LaunchServices.framework/Support/lsregister \-kill -r -domain local -domain system -domain user
I had the same problem, and a simple copy and paste from the excellent reply was a little problematic. I've reformatted the text with code tags for ease of use.

Thanks.
bassi is offline   Reply With Quote
Old 06-25-2005, 07:28 AM   #6
Hal Itosis
Hall of Famer
 
Join Date: Apr 2002
Posts: 3,315
Quote:
Originally Posted by seanasy
> Thank you! This has been bugging me for a while.
> In my case, a relaunch of the Finder was also needed.

There's a really nice AppleScript over at MacFixIt (posted almost exactly one year ago).
It quits Finder, does the "lsregister -kill" routine, and then re-activates Finder.

-HI-
Hal Itosis is offline   Reply With Quote
Old 08-27-2005, 05:07 PM   #7
bedouin
All Star
 
Join Date: Aug 2004
Posts: 759
Any idea what causes this to happen in the first place? I've been using OS X for over 3 years now and this just happened to me today, after I used Carbon Copy Cloner to move my install to a new hard drive. Is there some relationship?
bedouin is offline   Reply With Quote
Old 03-02-2008, 07:29 AM   #8
oglimmer
Registered User
 
Join Date: Mar 2008
Posts: 1
For 10.5.2. Leopard this binary moved to:

/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister

(thanks to a guy from the macfixitforums)
oglimmer is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 11:23 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.