MetaDataQuery.Close
-------------------

Frees the metadata query.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [MetaDataQuery](component_MetaDataQuery.md) | [8.0](newinversion80.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |

MBS( "MetaDataQuery.Close"; Query ) 

**MBS**( **"MetaDataQuery.Close";** /\* Frees the metadata query. \*/  
**$Query**) /\* The reference number of the query. \*/ 

### Parameters

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

### Result

Returns OK or error.

### Description

Frees the metadata query.  
### Examples

Close search:

 Set Variable \[ $r ; Value: MBS ( "MetaDataQuery.Close"; $Query ) \]  
### See also

- [MetaDataQuery.Create](MetaDataQueryCreate.md)
- [MetaDataQuery.List](MetaDataQueryList.md)
- [MetaDataQuery.Paths](MetaDataQueryPaths.md)

### Example Databases

- [Mac only/MetaDataQuery/Find FileMaker Databases](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/MetaDataQuery/Find%20FileMaker%20Databases.shtml#1ScriptAnchor_)
- [Mac only/MetaDataQuery/Search Applications](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/MetaDataQuery/Search%20Applications.shtml#1ScriptAnchor_)

### Blog Entries

- [Spotlight search in FileMaker with MBS Plugin](https://www.mbsplugins.de/archive/2017-12-16/Spotlight_search_in_FileMaker_/monkeybreadsoftware_blog_filemaker)

This function is free to use.

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

  
[MetaDataQuery.AttributesForFile](MetaDataQueryAttributesForFile.md) - [MetaDataQuery.Create](MetaDataQueryCreate.md)

[HTML Version](MetaDataQueryClose.shtml)