Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

List all apps registered with LaunchServices Apps
Basically, OS X LaunchServices is how an application is found to run when you double-click on a document. If the program is in /Applications, or you launch it at least once, then LaunchServices should detect it. LaunchServices contains a big, long list of all the Applications, and which ones accept documents of which type. So if you have an Application that is not "registering" correctly with LaunchServices how do you check it's information? Try this in the Terminal:
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/\
Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -dump
You should be able to copy and paste that, thanks to the backslash. But if you can't, just make it one long line with no added spaces. This command will list all LaunchServices information. The output will look something like this:
B00001572  APPL/ddsk  Thu Aug  5 21:25:59 2004  DiskImageMounter.app
           -pad----hn---s--A----       v76.4.0  DiskImageMounter
           Contents/Resources/diskcopy.icns     com.apple.DiskImageMounter
           Contents/MacOS/DiskImageMounter      12556, 1728655, Mach-O
           V00000008 /System/Library/CoreServices/DiskImageMounter.app

C00001344  NDIF disk image
           viewer, default, apple, Contents/Resources/diskcopy-doc.icns
           .ndif, 'dimg', 'hdro', 'rohd', 'hdcm'

C00001351  NDIF disk image segment
           none, default, apple, Contents/Resources/diskcopy-doc.icns
           .imgpart, 'dseg'
           
           ....
The B entries list the programs' basic info (in this case, for DiskImageMounter.app). The C entries below that show which file types the program will accept, with both a description and a list of extensions. So there you have it; everything your machine know about. But the question is ... how do you clean out all the applications registered on unmounted DMG volumes which show at the end of the list?

[robg adds: To me, at least, it seems this hint is mostly in the "hmm, that's interesting" category, as I can't see any way to directly modify or change the info it holds (not that you would want to do so under any normal circumstances!). So give it a whirl if you'd like to see every app that your system knows about; you might want to put | more (or | less) at the end of the command to control the paging.]
    •    
  • Currently 3.50 / 5
  You rated: 3 / 5 (6 votes cast)
 
[25,860 views]  

List all apps registered with LaunchServices | 7 comments | Create New Account
Click here to return to the 'List all apps registered with LaunchServices' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Not for Jaguar or older?
Authored by: mkhaw on Oct 11, '04 12:21:20PM

This hint appears to require Panther (OS X 10.3). The 10.2.8 version of lsregister merely displays a usage message, which doesn't show '-dump' as a valid command-line option.



[ Reply to This | # ]
List all apps registered with LaunchServices
Authored by: johram on Oct 11, '04 12:41:25PM
A good FREE program that changes default apps is the aptly named RCDefaultApp. http://www.versiontracker.com/dyn/moreinfo/macosx/22977 or http://www.rubicode.com/Software/RCDefaultApp/ and this DOES work with 10.2

---
-
Send your windows friends over to http://osswin.sourceforge.net/
Read http://www.groklaw.net/

[ Reply to This | # ]

Answer [List all apps registered with LaunchServices]
Authored by: cougar718 on Oct 11, '04 02:53:13PM
Hello ladiez and gentz,
How do you clean out all the applications registered on unmounted DMG volumes which show at the end of the list?
Well you can't clean the applications out 1 by 1 but you can throw out the database and have it rebuilt on start up. As you may or may not know, I work with AppleScript alot and when you implement a line of code that contains 'choose application', AppleScript references the list of applications that LaunchServices has kept track of (To see this for yourself, simply open Script Editor and type 'choose application' and run the script)

Many, many times, I may have multiple applications and applications that are no longer installed in this list of Applications. So I do the following to remove them and start off fresh.

Note: Keep in mind doing the following will cause the dialog that is invoked when you a launch a file for the very first time (Included with Apple's fix to stop malicious code being disguised as normal files, JPEG, etc.)

1. Navigate to Hardrive/Library/Caches/

2. Delete the file named 'com.apple.LaunchServices.6B.csstore' Enter your password when prompted.

Note: For Jaguar users, there may or may not be 2 files that contain the words "LaunchServices" Those files should be deleted if they exist.

3. Restart.

On restart, the files will be recreated and the database will be rebuilt removing old and unused applications.

Good luck and cheers!

---
Rick alias cougar

[ Reply to This | # ]

List all apps registered with LaunchServices
Authored by: fabrizio on Oct 11, '04 04:51:01PM

The info in the database are gathered by the System from the Info.plist files stored in each ".app" folder. If you want to modify the database (e.g. you want a specific app no longer be associated to a particular file type in the "Open with..." menu) you have to modify the Info.plist file of that app and then rebuild the LS database. You could either use Panther Cache Cleaner or this terminal command:

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


[ Reply to This | # ]
useful - Application list
Authored by: kholburn on Oct 11, '04 11:35:43PM

I have wanted since 10.0.4 to be able to create an applications link folder with symbolic links to all applications in the /Applications folder. The trouble is it's very hard to tell in a script, what's an application, there are several different types. This will make it relatively easy.



[ Reply to This | # ]
This command has more options
Authored by: ptejad on Oct 23, '04 04:58:10PM

Leave off the -dump to see them. The most interesting of them, is the ability to have Launch Services scan a directory for Applications, and add them to the LS database. This makes many more Apps available in the Open with menus, and related places.



[ Reply to This | # ]
List all apps registered with LaunchServices
Authored by: joelbruner on Oct 25, '10 03:06:53PM
New path for newer systems:
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -dump


[ Reply to This | # ]