I am using the Spotlight API (NSSMetadataQuery) in my application. I want to show the user a useful note if they try to do something that will make the Spotlight query on the one that is not indexed.
I can determine this in the terminal by running "mdutil -s / Volumes / Foo".
Is there an API that returns this information that does not require running an external program?
source share