Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
MetaDataQuery.SearchScopes
Queries the search scopes.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
MetaDataQuery | 8.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |
MBS( "MetaDataQuery.SearchScopes"; Query ) More
Parameters
Parameter | Description | Example |
---|---|---|
Query | The reference number of the query. | $query |
Result
Returns list or error.
Description
Queries the search scopes.Returns a list with file paths and special keywords used to specify specific locations:
Key | Description |
UserHomeScope | Search the user’s home directory. |
LocalComputerScope | Search all local mounted volumes, including the user home directory. The user’s home directory is searched even if it is a remote volume. |
NetworkScope | Search all user-mounted remote volumes. |
UbiquitousDocumentsScope | Search all files in the Documents directories of the app’s iCloud container directories. |
UbiquitousDataScope | Search all files not in the Documents directories of the app’s iCloud container directories. |
AccessibleUbiquitousExternalDocumentsScope | Search for documents outside the app’s container. This search can locate iCloud documents that the user previously opened using a document picker view controller. This lets your app access the documents again without requiring direct user interaction. |
IndexedLocalComputerScope | Search all indexed local mounted volumes including the current user’s home directory (even if the home directory is remote). |
IndexedNetworkScope | Search all indexed user-mounted remote volumes. |
See also
This function checks for a license.
Created 16th December 2017, last changed 9th November 2021