About the File Metadata Attributes Reference
File metdata provides a collection of standard metadata attributes that are used by most files. Querying these standard attribute keys makes it easier to search based on standard metadata data. The file metadata attributes are used when performing searching or writing Spotlight importers on OS X. Metadata searches can be performed on local and network volumes when using OS X, and on iCloud when using iOS as well as OS X.
iCloud defines its own set of metadata attributes that are available only when files are stored, or transferring to or from, iCloud. These are defined in “iCloud Metadata Attributes.”
Who Should Read This Document
You should read this document if you are creating metadata search queries to locate files. You should also use the standard Spotlight metadata attribute keys if writing a Spotlight importer. It is important to use existing keys whenever possible. Avoid creating new metadata keys if an existing key would be appropriate. For example, if your document tracks the photographer of an image, use the
kMDItemAuthors key rather than defining a custom
photographer key.All applications that support saving their own documents should consider providing a Spotlight importer using these metadata attribute keys.
The iCloud metadata attributes provide information on the status of files as they are uploaded and downloaded from iCloud. The abilities include checking for downloading or uploading status and tracking the upload and download percentages.
Organization of This Document
This article contains descriptions of the metadata attribute keys that Apple provides:
““Spotlight Metadata Attributes”” describes Spotlight’s standard metadata attributes.
“iCloud Metadata Attributes” list the metadata attributes that are only available to files that are iCloud specific.
This document is primarily a reference. You may want to read these additional topics for a better understanding of the concepts required to effectively use Spotlight and iCloud metadata.
Spotlight Overview covers the conceptual details surrounding file metadata usage
File Metadata Search Programming Guide describes how to write search queries that use metadata attributes. Searches can be performed on both OS X and iOS and targeted to local or networked storage, or iCloud.
Core Data Spotlight Integration Programming Guide describes how to write Spotlight importers that use Core Data storage on OS X.
Spotlight Importer Programming Guide describes how to write and troubleshoot Spotlight importers on OS X.
© 2005, 2011 Apple Inc. All Rights Reserved. (Last updated: 2011-09-28)