Yate retains many different kinds of information. This statement allows you to extract most of it. For convenience the information types are separated into various submenus. Some menu items are duplicated where it makes sense.
In all of the available functions, extracted list items are separated by the default list delimiter \~. Unless otherwise mentioned, returned lists are sorted. When a key-value list is being produced, the default key-value separator \k is used. All text fields may contain any of the escape sequences described in Escape Sequences.
The information returned by the functions is typically stored to a named variable. A few of the functions store information to multiple named variables.
The following types of items can be extracted:
List of File Browser Pinned Folders
This submenu contains functions to return information relating to action runtime settings. All functions return a list.
This submenu contains functions to return lists of various types of fields.
This submenu contains functions to return the filename extensions used by various file types.
A list of credit roles as displayed in the Combined Credits Editor. The list is filtered by setting an encoded value in he Filter field.
The filter is specified in the Filter field and may contain any of the escape sequences described in Escape Sequences. If no filter information is provided, all credit roles will be returned.
The filter is provided as a sequence of case insensitive character codes. These codes are the same as those displayed in the Combined Credits Editor's known credits filter window:
- D
- The credit is a known Discogs credit.
- B
- The credit is a known MusicBrainz credit.
- R
- The credit is a known Roon credit.
- U
- The credit is user defined.
- I
- The credit has a default mapping to the Involved People field.
- M
- The credit has a default mapping to the Musician Credits field.
- S
- The credit has a specified mapping of Composer, Conductor, Lyricist or Remixer.
- H
- The credit has been marked as hidden in the Combined Credits Editor.
- *
- A built in credit's mapping or alias field has been changed.
When a code is encountered it by default implies must match. This is equivalent to ✓ in the Combined Credits Editor. You can explicitly force a must match scenario by specifying a + code. example: +DB or DB implies only include credits used by Discogs and MusicBrainz.
You can also specify must not match which is equivalent to ✕ in the Combined Credits Editor. You do this by specifying a - code. For example +D-B implies only display credits used by Discogs but not by MusicBrainz.
You can also filter on text. All text following an = code will only include items which contain the specified case insensitive text. No further codes are extracted after an = code. +R=Guitar implies only include credits used by Roon which contain 'guitar'.
The encoding is designed such that at runtime you can construct a filter exactly as employed in the Combined Credits Editor.
This submenu contains functions to return the contents of import sets used by Discogs and MusicBrainz. Other than examine the contents of the returned lists, there's not much you can do with them.
This submenu contains functions to return various lists of actions:
A list containing the names of all defined containers will be saved to the specified named variable.
A list containing the names of all folders pinned in the File Browser.
A list containing the names of all Finder colour tags.
A list of all ID3 Picture Types will be saved to the specified named variable. Note that this list is not sorted. The list is ordered by each type's hard coded index.
The list of returned fields is determined as follows:
A list of the system sounds available on the Play System Sound statement.
This menu contains additional submenus accessing various functionality regarding application lists.
Contents of Application List
This submenu contains the names of all the application lists. The names represent the possibly renamed names. Selecting an application list will return all items in the list.
At the bottom of the submenu there is a menu item named Indirect Application List. Named variable Indirect Application List must contain the name of an application list. An original or renamed list name is acceptable. The application list associated with the indirectly specified name will have its items stored to the specified named variable.
Application List Names
This submenu contains items to return the names of the application lists in various ways.
- List of Application List Names
A list of the current names of the application lists is returned in the specified named variable.- Current Application List Names ≔ Defaults
A key-value list is returned in the specified named variable. Keys are the current application list names and values are the default names.- Default Application List Names ≔ Current
A key-value list is returned in the specified named variable. Keys are the current default list names and values are the current names.
Application List Mappings
This submenu contains additional functions describing various mappings between fields and application lists.
- Fields ≔ Application Lists
A key-value list is returned in the specified named variable. Keys are field names and values are the name of the application list to which it is mapped.- List of Fields Mapped to an Application List
A list of fields currently mapped to an application list is returned in the supplied named variable.- Application Lists ≔ Fields
A key-value list is returned in the specified named variable. Keys are the current application list names and values are the names of fields associated with the list. Field names are separated by the secondary list delimiter (\:)
This menu contains additional submenus describing various functionality regarding application sets.
Content of Named Application Set
This submenu contains additional contains items to provide the contents of named application set items.
- Named Exception Set
The set name can be directly or indirectly specified (via escape sequences). You can choose two scenarios as to how to handle the named exception set not existing at runtime. You can have the action terminate or you can set the action test state where true means it existed and false means it did not. The set is extracted in one of the following ways:
- Extract list to named variable
The exception set will be stored to the specified named variable as a list of the exception fields.- Extract key-value list to named variable
The exception set will be stored to the specified named variable as a key-value list. The exception fields become the keys. The values are encoded as a single character as follows:
- N
- No case change.
- L
- lower case
- U
- UPPER CASE
- C
- Capitalize
- F
- Force Exception
- n, l, u, c, f
- Same as above with No Change on Exact Match specified
- Named Rename Template
The contents of a named rename template are saved as a list to the specified named variable. The list returned consists of tokens and text. List items which are tokens start with the Rename Template Token Indicator (\?ri) and are followed by the name of the token as it appears in the rename template editor. There is not much you can do with this content other than use it for validation purposes.- Named Replacement Set
The set name can be directly or indirectly specified (via escape sequences). You can choose two scenarios as to how to handle the named replacement set not existing at runtime. You can have the action terminate or you can set the action test state where true means it existed and false means it did not. The set is extracted in one of the following ways:
- Extract named variables
Every item in the replacement set will become a named variable where the from field is the name and the to field is the value.- Extract list to named variable
The replacement set will be stored to the specified named variable as a list of the from fields.- Extract key-value list to named variable
The replacement set will be stored to the specified named variable as a key-value list. The from fields become the keys and the to fields are the values.- Named Runtime Settings Set
The set name can be directly or indirectly specified (via escape sequences). You can choose two scenarios as to how to handle the named runtime settings set not existing at runtime. You can have the action terminate or you can set the action test state where true means it existed and false means it did not. The set is extracted in one of the following ways:
- Extract named variables
Every item in the action runtime settings set will become a named variable where the from field is the name and the to field is the value.- Extract list to named variable
The action runtime settings set will be stored to the specified named variable as a list of the from fields.- Extract key-value list to named variable
The action runtime settings set will be stored to the specified named variable as a key-value list. The from fields become the keys and the to fields are the values.- Named Tag Set
The set name can be directly or indirectly specified (via escape sequences). You can choose two scenarios as to how to handle the named tag set not existing at runtime. You can have the action terminate or you can set the action test state where true means it existed and false means it did not. A list of the fields enabled in a tag set is returned. If the tag set is inverted, the non inverted equivalent fields are returned. ie. an inverted set with all fields except Artist selected will return Artist. Note that Track Variables may be returned.
List of Application Sets
This submenu contains additional contains submenus providing lists of all named application sets of a particular type.
- List of Exception Sets
A list containing the names of all exception sets will be saved to the specified named variable.- List of Export Sets
This submenu provides access to the names of different export sets.
- List of All Export Sets
A list containing the names of all export sets will be saved to the specified named variable.- List of Album Export Sets
A list containing the names of those export sets which are sufficient to produce an album database will be saved to the specified named variable.- List of Track Export Sets
A list containing the names of those export sets which are sufficient to produce a track database will be saved to the specified named variable.- List of File to Tag Templates
A list containing the names of all file to tag templates will be saved to the specified named variable.- List of Rename Templates
A list containing the names of all rename templates will be saved to the specified named variable.- List of Replacement Sets
A list containing the names of all replacement sets will be saved to the specified named variable.- List of Search Templates
A list containing the names of all Search templates will be saved to the specified named variable.- List of Tag Sets
A list containing the names of all tag sets will be saved to the specified named variable.
Name of Special Exception Set
This submenu contains additional contains items describing the names of exception sets associated with a particular special status code.
- Name of Default Exception Set (✓)
The name of the default exception set will be saved to the specified named variable. If the item is not assigned, the named variable will be set to empty.- Name of Names Exception Set (N)
The name of the names exception set will be saved to the specified named variable. If the item is not assigned, the named variable will be set to empty.- Name of Natural Sort Exception Set (S)
The name of the natural sort exception set will be saved to the specified named variable. If the item is not assigned, the named variable will be set to empty.- Name of Title Case Exception Set (T)
The name of the title case exception set will be saved to the specified named variable. If the item is not assigned, the named variable will be set to empty.- Name of Weight Exception Set (W)
The name of the weight exception set will be saved to the specified named variable. If the item is not assigned, the named variable will be set to empty.
Name of Special Replacement Set
This submenu contains additional contains items describing the names of replacement sets associated with a particular special status code.
- Name of Default Replacement Set (✓)
The name of the default exception set will be saved to the specified named variable. If the item is not assigned, the named variable will be set to empty.- Name of Case Replacement Set (C)
The name of the case replacement set will be saved to the specified named variable. If the item is not assigned, the named variable will be set to empty.- Name of Fold Characters Replacement Set (F)
The name of the fold characters replacement set will be saved to the specified named variable. If the item is not assigned, the named variable will be set to empty.- Name of Rename Replacement Set (R)
The name of the rename replacement set will be saved to the specified named variable. If the item is not assigned, the named variable will be set to empty.- Name of Sort Form Name Prefix Set (P)
The name of the sort form name prefix set will be saved to the specified named variable. If the item is not assigned, the named variable will be set to empty.- Name of Sort Form Ignore Suffix Set (S)
The name of the sort form ignore suffix set will be saved to the specified named variable. If the item is not assigned, the named variable will be set to empty.
These functions return the current value of the specified setting. The following settings can be read: