Topic : Remove applications from 'Open With' dialog

Topic Archived This topic has been archived - replies are not allowed.


This question is answered. "Helpful" answers available: 0 . "Solved" answers available: 1 .



            Permlink
            Replies : 3 - Pages : 1 - Last Post : Jun 18, 2008 5:38 AM by: Barney-15E
warewolf55

Posts: 1
From: EST
Registered: Jun 18, 2008
Remove applications from 'Open With' dialog
Posted: Jun 18, 2008 2:43 AM
 

I have searched seemingly everywhere for an answer to this question. When I right click on an html file (or really any other file) and to go the 'open with' dialog there is a huge laundry list of applications listed. For the html files there are DivX converters, Big Bang games, etc.

How can I remove all of the applications that I know can not open an html file and others that I would never use to open those files either? I like the ability to easily open the file with different browsers but really dislike scrolling through 30 different applications to find them.

I have deleted the "com.apple.LaunchServices" file and rebooted.

I have run "/System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user" and rebooted.

Neither of these solutions are helping the problem at all. I even tried some Onyx program. Is there a way to "trim the fat" from that window?

iMac 2.16Ghz   Mac OS X (10.5.3)    
Kappy


Posts: 41,524
From: Tampa, FL (Vancouver, BC May-Aug)
Registered: Oct 5, 2001
Re: Remove applications from 'Open With' dialog
Posted: Jun 18, 2008 2:51 AM   in response to: warewolf55
Helpful

The LaunchServices data is not really user editable. It is built automatically based on opened files, application and file associations, etc. You can clear the database by one of the two methods you have tried (the second does not work in Leopard) but that's pretty much it. You could edit the /Home/Library/Preferences/com.apple.LaunchServices.plist file and delete unwanted nodes, but the list will eventually build up again over time.

To clear out the database you must remove:

/Library/Caches/com.apple.LaunchServices-0230.csstore
/Library/Caches/com.apple.LaunchServices-023501.csstore
/Home/Library/Preferences/com.apple.LaunchServices.plist

You can also use a third-party utility such as TinkerTool System which has a function to rebuild the LaunchServices database.

Mac Pro 2.66 Ghz; MacBook Pro C2D 2.33 Ghz; MacBook Pro 2.16 Ghz   Mac OS X (10.5.3)   Intel iMac C2D 17 "; MacBook 2.0 Ghz; 30 GB iPod Video (Black); iPod Nano 2 GB  
macjack


Posts: 10,452
From: The Big Apple
Registered: Aug 18, 2003
Re: Remove applications from 'Open With' dialog
Posted: Jun 18, 2008 5:33 AM   in response to: warewolf55
Helpful

The command you ran "/System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user" is for 10.4, it is not the correct command to rebuild LaunchServices in 10.5.

Launch /Utilities/Terminal and copy & paste this at the command line to rebuild LaunchServices:

Code:
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user
Then press return. Wait until terminal returns to the command line. Quit Terminal. After that, log out and back in or restart. That should solve it. Let us know



-mj

iMac 24" 2.16 GHz 3GB RAM   Mac OS X (10.5.3)   iMac G4 17" 800 MHz 768MB/ iMac 333MHz 256 MB / LaCie d2s/ APC-UPS  
Barney-15E


Posts: 5,279
Registered: May 22, 2001
Re: Remove applications from 'Open With' dialog
Posted: Jun 18, 2008 5:38 AM   in response to: warewolf55
 

Inside each application package is a file called info.plist. In that file is an array of CFBundleDocumentTypes. Among other things in that array are the file types that the program advertises that it will open. So, if you want to eliminate some programs from showing up in the list, you'll need to edit each info.plist file and remove the entries for that file type, and then rebuild the launchservices database.

You'll still be able to open files that you have removed from the info.plist, but they will not show up in the "Recommended Applications" or "Open With…"

I didn't do any searching for a utility that will make it easier.

1.8 SP G5/iMac G4 FP/MBP 2.33/PB G3 Pismo   Mac OS X (10.5.3)   XLR8 G4 Upgrade for Pismo