Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


Sets the predicate to search.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
MetaDataQuery 8.0 Yes No Yes, macOS only No Yes
MBS( "MetaDataQuery.SetQueryString"; Query; QueryString )   More


Parameter Description Example value
Query The reference number of the query. $query
QueryString The query string. "kMDItemContentType=\"\""


Returns OK or error.


Sets the predicate to search.
The plugin will build the predicate with the given query string.
Setting this property while a query is running stops the query and discards the current results. The receiver immediately starts a new query.

See list of metadata keys here:


Search for applications

MBS( "MetaDataQuery.SetQueryString"; $Query; "kMDItemContentType=\"\"")

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

Created 16th December 2017, last changed 4th March 2019

MetaDataQuery.SetEvaluate   -   MetaDataQuery.SetScript

Feedback: Report problem or ask question.

MBS FileMaker Plugins