| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
|
Thanks for the info on Spotlight (I hadn’t
known about mdfind), but I need to be compatible back to 10.2.8, so I won’t
be able to use this. Hopefully the LS team will expose the
internal API Spotlight uses to get this info.
From:
Christopher Linn [mailto:email@hidden] 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 |
_______________________________________________ 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: | |
| >Re: List of registered apps (From: Christopher Linn <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.