Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: List of registered apps



There is no LS API to do this. However, a Spotlight search will do the trick nicely. 

The Spotlight query _expression_ you want to use is:

kMDItemContentTypeTree == "com.apple.application"c

This _expression_ says, in Spotlight-ese, "item content type conforms to com.apple.application". The "c" at the end does a case-insensitive string match. The kMDItemContentTypeTree attr is a multi-value containing *all* the content type UTIs to which the item conforms. You can therefore search this attr to perform a conforms-to test in a Spotlight query; in this case it allows the query to find both application packages and plain file apps.

Try it with this shell command:

mdfind 'kMDItemContentTypeTree = "com.apple.application"c'

-Chris

On Oct 18, 2005, at 3:46 PM, David Litwin wrote:

I need to get a list of all registered apps on a particular Mac.

 

LaunchServices can give me info about an app given a number of identifying properties, but how would one go about getting access to its entire list?


David Litwin

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >List of registered apps (From: "David Litwin" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.