Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Attempts to start the query.

Component Version macOS Windows Linux Server iOS SDK
MetaDataQuery 8.0 ✅ Yes ❌ No ❌ No ✅ Yes, on macOS ✅ Yes
MBS( "MetaDataQuery.StartQuery"; Query )   More


Parameter Description Example
Query The reference number of the query. $query


Returns OK or error.


Attempts to start the query.
Returns OK when successful; otherwise, Failed.
A query may fail to start if it does not specify a predicate, or if the query has already been started.


Start a query:

Set Variable [ $query ; Value: MBS( "MetaDataQuery.Create" ) ]
Set Variable [ $r ; Value: MBS( "MetaDataQuery.SetQueryString"; $Query; "kMDItemContentType=\"\"") ]
Set Variable [ $r ; Value: MBS( "MetaDataQuery.StartQuery"; $Query) ]

See also

Example Databases

Blog Entries

This function checks for a license.

Created 16th December 2017, last changed 16th December 2017

MetaDataQuery.SetSearchScopes - MetaDataQuery.StopQuery