## Get Property

This function is used to extract various read only properties from a file. The property is saved to the specified Variable field.

Note that this function is valid in all execution contexts. However, most of the values returned are only meaningful in a Grouped execution context.

The following table describes the currently supported properties. Note that the Transfer Metadata statement can optionally create a key-value list containing the properties contained in the source file. The property names in the table below are the names of the keys. Property names followed by * are not available in the created key-value list.

> Audio Container Status
>   Many audio files have formatting issues which are handled by Yate, iTunes and most other taggers and audio players. However, it is possible that some applications cannot properly process files which have irregularities. Typically these issues can be solved by simply saving the file with Yate which corrects them when saving. Note that the property reports on issues in the audio container, not the tag metadata. This property will return 0 if irregularities have been detected which can be fixed by saving the file. Otherwise it returns 1. It is important to note that unless you are experiencing issues with other applications, these formatting issues can safely be ignored.
> Audio File Type
>   This property provides a better means of testing a file's type than the filename extension. The possible return values are:
>   1 = mp3, mp2
>   2 = m4a, m4b, mp4, m4v
>   4 = flac
>   8 = aiff
>   16 = dsf
>   32 = wav
>   64 = dff
> Bit Depth
>   The bit depth of the track, where applicable for the audio stream type. If not applicable, the return value will be the empty string. This is the same bit depth displayed on the Channel Mode property.
> Bit Rate (kbits/sec)
>   The bit rate of the track. mp3 files can have a number followed by VBR.
> Channel Mode
>   The track's channel layout. Typically Stereo. If applicable the bit depth is at the end of the string followed by a comma. eg. Stereo, 16 bit
> Creation Date
>   The date/time the file was created.
> File Count *
>   The number of files being manipulated by the action.
> File Extension
>   The filename extension. For /Genre/Artist/Album/Track.mp3, mp3 is returned.
> File Index *
>   The index of the current file in the set of files being operated on. The index is zero based.
> File Name (with extension)
>   The full filename. For /Genre/Artist/Album/Track.mp3, Track.mp3 is returned.
> File Name (without extension)
>   The filename with the extension removed. For /Genre/Artist/Album/Track.mp3, Track is returned.
> File Size (bytes)
>   The size of the file in bytes.
> Folder Name
>   The name of the folder containing the file. For /Genre/Artist/Album/Track.mp3, Album is returned.
> Free Space (bytes)
>   The size of the free space, (unused or pad), in the file.
> Has Video
>   1 if the file contains a video track, 0 otherwise.
> ID3 Version
>   The empty string if the track does not have an ID3 tag. If the track only has a version 1 tag, 1 is returned. If the track has a version 2.x tag, 2.x is returned. If the track has a version 1 and version 2 tag, 2.x,1 is returned.
> Is Linked to iTunes *
>   1 if the track is linked to iTunes, 0 if not.
> Is Modified *
>   1 if the tag metadata has unsaved changes, 0 if not.
> iTunes PID *
>   The iTunes PID if the track is linked to iTunes, empty if not.
> Leading mp3 Audio Padding
>   mp3 files can have padding before the start of the audio stream. The property returns the number of bytes of leading audio padding.
> Modification Date
>   The date/time the file was last modified.
> mp3 Header
>   mp3 files can contain header frames which describe the audio properties of the file. Possible values are Xing, Info, VBRI or empty. If no mp3 audio frames are found this property will be set to No Audio. empty is not an error while No Audio is.
> Network Response *
>   Action functions which perform network accesses on a per track basis store the last obtained network response in this property. The same workflow is applied by all setters of this property. When the action statement starts, the property is set to 0. Immediately prior to issuing a network request, the property is set to -1. When a network response is obtained, it is saved to the property.
> Original File Name (with extension) *
>   The same as File Name (with extension), but is extracted from the path to the file when opened. Note that a file's name and location can be changed by rename and move functions.
> Original File Name (without extension) *
>   The same as File Name (without extension), but is extracted from the path of file when opened. Note that a file's name and location can be changed by rename and move functions.
> Original Folder Name *
>   The same as Folder Name, but is extracted from the path to the file when opened. Note that a file's name and location can be changed by rename and move functions.
> Original Parent Folder Name *
>   The same as Parent Folder Name, but is extracted from the path to the file when opened. Note that a file's name and location can be changed by rename and move functions.
> Original Path to File *
>   The original path to the file when opened.
> Original Path to File (without extension) *
>   The original path to the file with the filename extension removed.
> Original Path to Folder *
>   The same as Path to Folder, but is extracted from the path to the file when opened. Note that a file's name and location can be changed by rename and move functions.
> Original Path to Parent Folder *
>   The same as Path to Parent Folder, but is extracted from the path to the file when opened. Note that a file's name and location can be changed by rename and move functions.
> Parent Folder Name
>   The name of the folder containing the folder which contains the file. For /Genre/Artist/Album/Track.mp3, Artist is returned.
> Path to File
>   The current path to the file. For /Genre/Artist/Album/Track.mp3, /Genre/Artist/Album/Track.mp3 is returned.
> Path to File (without extension)
>   The current path to the file without the filename extension. For /Genre/Artist/Album/Track.mp3, /Genre/Artist/Album/Track is returned.
> Path to Folder
>   The current path to the folder containing the file. For /Genre/Artist/Album/Track.mp3, /Genre/Artist/Album is returned.
> Path to Parent Folder
>   The current path to the folder containing the folder which contains the file. For /Genre/Artist/Album/Track.mp3, /Genre/Artist is returned.
> Retained Path 1 *
>   This property is set by the Rename, Create Symbolic Link, Copy Files, Move and Export Metadata functions. On success these functions will set the property to the destination path. On failure the property will be empty. Note that an empty value for the property might also mean that the operation did not take place because the source and destination paths were the same.
> Retained Path 2 *
>   This property is cleared by the following functions on failure. It is set as described on success
>   Create Symbolic Link functions
>     The property will contain the value, absolute or relative, inside the link.
>   Copy and Move Files functions
>     The property will be set to the source file's path.
>   Rename function
>     The property will be set to the original path.
>   Export Metadata
>     The property will be set to the base filename.
> Sample Rate (Hz)
>   The sample rate of the track.
> Save Error *
>   Set to 0 if the last Save operation succeeded. Set to 1 if it failed.
> Stem Data
>   The specific read-only metadata available in a Stem file can be viewed in a snapshot or by double clicking on an audio properties table. If you wish to manually parse the data, you can extract it via this property.
> Stream
>   A symbolic representation of the type of audio stream contained in a track. For example MPEG-1, Layer 3.
>   If the file contains one or more video tracks video will be appended. For example AAC, video.
> Time (hh:mm:ss)
>   The duration of the track described in standard notation.
> Time (ms)
>   The duration of the track in milliseconds.
> Video Size (wxh)
>   The width x height of the largest video track in the file. If the file does not contain video, an empty string is returned.