> For the complete documentation index, see [llms.txt](https://chaoses-ib.gitbook.io/directory-opus/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chaoses-ib.gitbook.io/directory-opus/manual/reference/scripting_reference/scripting_objects/metadata.md).

# Metadata

The **Metadata** object provides metadata information about a file or folder (metadata are things like the track number of a music file, the dimensions of an image, the author of a document, etc). You can obtain a **Metadata** object from the [**Item**](/directory-opus/manual/reference/scripting_reference/scripting_objects/item.md)**.metadata** property if you have an **Item** object, and if not you can obtain it using the path of the item using the [**FSUtil**](/directory-opus/manual/reference/scripting_reference/scripting_objects/fsutil.md)**.GetMetadata** method.

The **Metadata** object provides different sub-objects as properties that group the available metadata into a number of categories, broadly corresponding to the categories listed on the [Keywords for Columns](/directory-opus/manual/reference/metadata_keywords/keywords_for_columns.md) page. You can determine the primary, or main type of metadata available using the *default value* of the **Metadata** object.

| Property Name      | Return Type                                                                                                   | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ------------------ | ------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| *\<default value>* | *string*                                                                                                      | <p>Returns a string indicating the primary type of metadata available in this object. The string will be one of the following: <em>none</em>, <em>video</em>, <em>audio</em>, <em>image</em>, <em>font</em>, <em>exe</em>, <em>doc</em>, <em>other</em>.<br>Note that sometimes more than one type of metadata will be available. For example, author is a document field (and so found under the <strong>doc</strong> property), but pictures can have authors as well. In this instance, the <strong>Metadata</strong> object would provide both <strong>ImageMeta</strong> and <strong>DocMeta</strong> objects.</p><p>If the returned string is <em>none</em> it means that no metadata is available for the file, and you should not attempt to access any of the other properties.</p> |
| audio              | *object*:[**AudioMeta**](/directory-opus/manual/reference/scripting_reference/scripting_objects/audiometa.md) | Returns an [**AudioMeta**](/directory-opus/manual/reference/scripting_reference/scripting_objects/audiometa.md) object providing access to audio metadata. The properties of this object are generally returned as their appropriate underlying type (e.g. a numeric field like "track number" will be returned as an *int*).                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| audio\_text        | *object*:[**AudioMeta**](/directory-opus/manual/reference/scripting_reference/scripting_objects/audiometa.md) | Returns an [**AudioMeta**](/directory-opus/manual/reference/scripting_reference/scripting_objects/audiometa.md) object that provides access to the unmodified text form of the audio metadata. This provides access to the same text as displayed in a Lister. For example, a numeric field like "track number" would be returned as a *string* rather than an *int*.                                                                                                                                                                                                                                                                                                                                                                                                                        |
| doc                | *object:*[**DocMeta**](/directory-opus/manual/reference/scripting_reference/scripting_objects/docmeta.md)     | Returns a [**DocMeta**](/directory-opus/manual/reference/scripting_reference/scripting_objects/docmeta.md) object providing access to document metadata.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| doc\_text          | *object:*[**DocMeta**](/directory-opus/manual/reference/scripting_reference/scripting_objects/docmeta.md)     | Returns a [**DocMeta**](/directory-opus/manual/reference/scripting_reference/scripting_objects/docmeta.md) object that provides access to the unmodified text form of the document metadata.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| exe                | *object:*[**ExeMeta**](/directory-opus/manual/reference/scripting_reference/scripting_objects/exemeta.md)     | Returns an [**ExeMeta**](/directory-opus/manual/reference/scripting_reference/scripting_objects/exemeta.md) object providing access to executable (program) metadata.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| exe\_text          | *object:*[**ExeMeta**](/directory-opus/manual/reference/scripting_reference/scripting_objects/exemeta.md)     | Returns an [**ExeMeta**](/directory-opus/manual/reference/scripting_reference/scripting_objects/exemeta.md) object that provides access to the unmodified text form of the program metadata.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| font               | *object:*[**FontMeta**](/directory-opus/manual/reference/scripting_reference/scripting_objects/fontmeta.md)   | Returns a [**FontMeta**](/directory-opus/manual/reference/scripting_reference/scripting_objects/fontmeta.md) object providing access to font file metadata.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| image              | *object:*[**ImageMeta**](/directory-opus/manual/reference/scripting_reference/scripting_objects/imagemeta.md) | Returns an [**ImageMeta**](/directory-opus/manual/reference/scripting_reference/scripting_objects/imagemeta.md) object providing access to picture metadata.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| image\_text        | *object:*[**ImageMeta**](/directory-opus/manual/reference/scripting_reference/scripting_objects/imagemeta.md) | Returns an [**ImageMeta**](/directory-opus/manual/reference/scripting_reference/scripting_objects/imagemeta.md) object that provides access to the unmodified text form of the picture metadata.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| other              | *object:*[**OtherMeta**](/directory-opus/manual/reference/scripting_reference/scripting_objects/othermeta.md) | Returns an [**OtherMeta**](/directory-opus/manual/reference/scripting_reference/scripting_objects/othermeta.md) object that provides access to miscellaneous metadata.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| tags               | *collection:string*                                                                                           | Returns a collection of *strings* corresponding to the tags that are assigned to this item.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| video              | *object:*[**VideoMeta**](/directory-opus/manual/reference/scripting_reference/scripting_objects/videometa.md) | Returns a \*\*[VideoMeta](/directory-opus/manual/reference/scripting_reference/scripting_objects/videometa.md)\*\*object providing access to video metadata.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| video\_text        | *object:*[**VideoMeta**](/directory-opus/manual/reference/scripting_reference/scripting_objects/videometa.md) | Returns a \*\*[VideoMeta](/directory-opus/manual/reference/scripting_reference/scripting_objects/videometa.md)\*\*object that provides access to the unmodified text form of the video metadata.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
