Most action functions support escape sequences in text fields. A field's context menu has items to facilitate the insertion of escape sequences. All of the escape sequences can be inserted into a text field via a text field's context menu.
Note that alphabetic case is ignored in escape sequences. The following table describes the supported escape sequences, a menu item and description. Note that # in the sequence column is a single integer in the range of 0-9.
When the Menu Item column is black, it represents a submenu on the Insert Yate Escape Sequence context menu. When it is blue it represents the name of a context menu from which you can choose the named item you desire. Information on each menu can be found below the following table.
Sequence | Menu Item | Description |
---|---|---|
\T | Date & Time | insert the date and time |
\D | Date | insert the date |
\YY | Current Year | insert the year |
\V# | Variable | insert the contents of the Variable. |
\I# | Variable as Integer | insert the contents of the specified Variable as an integer value. The leading integer value in the variable will be returned. If there is no leading integer value, 0 will be returned. eg. 5th movement --> 5 |
\F# | Variable as Float | insert the contents of the specified Variable as a numeric value. The leading number in the variable will be returned with at least one non fractional digit and at least one fractional digit. If there is no leading number, 0.0 will be returned. eg. 22.52, text --> 22.52 |
\S# | System Variable | insert the contents of the specified System Variable |
\C# | Custom Field | insert the contents of the specified Custom Field |
\R | Rating (0-5) | insert the default rating as a value between 0 and 5. This is used to get an external facing value for the rating as opposed to its internal format |
\Y4 | Year Field as YYYY | insert the Year field stripping everything off all date components other than a four digit year. Note that formats of YYMMDD without separators are handled correctly. If a value in the range of 1000 to 9999 cannot be established, an empty string is returned. |
\U | Unique ID | used to create a unique value as is generated by the Database ID action statement. If you are interested in the type of value generated see Preferences-Actions |
\YA | Yate Album ID | insert the Yate Album ID |
\YT | Yate Track ID | insert the Yate Track ID |
\H | Home Directory | insert the path to the home directory |
\?AS | Application Support Directory | insert the path to the ~/Library/Application Support directory |
\?DO | Documents Directory | insert the path to the Documents directory |
\?IV | iTunes Version string | insert the iTunes version string |
\?MO | Movies Directory | insert the path to the Movies directory |
\?MU | Music Directory | insert the path to the Music directory |
\?DL | Downloads Directory | insert the path to the Downloads directory |
\?YS | Yate Application Support Directory | insert the path to the ~/Library/Application Support/Yate directory |
\?YV | Yate Version string | insert the Yate version string |
\M | Multi-Value Delimiter | insert the value of the multi-value delimiter |
\K | List Key-Value Delimiter | insert the default key-value delimiter ≔ |
\~ | List Delimiter | insert the default list delimiter ⏎ |
\, | List Column Delimiter | insert the default list column delimiter ➤ |
\: | List Secondary Delimiter | insert a secondary list delimiter ● |
\_ | Alternate Comma | insert an alternate comma ‚ character. In Involved People and Musician Credits fields, real comma characters should only be used as delimiters |
\n | Newline character | insert a newline character |
\- | Tab character | insert a tab character |
\. | Centered Dot Character | inserts a centered dot character. This can be useful as a replacement character when debugging and looking for spaces in fields |
\&dddd | UTF16 Character | dddd must be exactly four hexadecimal characters. The value represents a UTF16 character code. eg. \&000d will insert a Carriage Return character. Note that this sequence is not necessary for visible characters as the Mac Character Viewer can be used to insert any visible character |
\<varname> | Named Variable | is used to insert the contents of the named variable varname. If the named variable does not exist, it is considered to be empty. The context menu Insert Special Yate Named Variable can be used to insert special named variables set by the application. If you need the non escaped name of a special named variable, depress the Shift key when selecting the item. You would do this when an action statement requires the name as opposed to the contents of a named variable. The Insert Named Variable context menu contains all named variables directly referenced in text fields in all open actions. The Shift key functionality applies to this menu as well. |
\@# | Named Variable in Variable | insert the contents of the named Variable whose name is contained in the specified Variable. eg. if Variable 1 contains test, @1 will be replaced with the contents of named variable test |
\@<varname> | Named Variable in Named Variable | the named variable varname contains the name of the named variable to be inserted |
\[fldname] | Insert Yate Field | is used to insert the contents of the specified field within a file. eg. fldname can be Artist. If you depress the Shift while selecting an item on the Insert Yate Field context menu, you will get the raw field name without the escape characters. Note that Custom field specifications with convenience qualifiers are processed correctly. However, the qualifiers are ignored. 'Custom 9 (Part)', 'Custom 9 (test)' and 'Custom 9' are all equivalent |
\=# | Value of Field in Variable | the specified variable contains the name of the field whose content's are to be inserted. eg. if Variable 1 contains Artist, \=1 will be replaced with the contents of the Artist field. Note that Custom field specifications with convenience qualifiers are processed correctly. However, the qualifiers are ignored. 'Custom 9 (Part)', 'Custom 9 (test)' and 'Custom 9' are all equivalent |
\{fldname} | Insert Yate Initial Field | is used to insert the initial contents of the specified field within a file. Note that an initial field is defined as the value of a field when the file was first loaded or since last saved. If you depress the Shift while selecting an item on the Insert Yate Initial Field context menu, you will get the raw field name without the escape characters.Note that Custom field specifications with convenience qualifiers are processed correctly. However, the qualifiers are ignored. 'Custom 9 (Part)', 'Custom 9 (test)' and 'Custom 9' are all equivalent |
\+# | Initial Value of Field in Variable | the specified variable contains the name of the field whose initial content's are to be inserted. eg. if Variable 1 contains Artist, \+1 will be replaced with the initial contents of the Artist field. Note that Custom field specifications with convenience qualifiers are processed correctly. However, the qualifiers are ignored. 'Custom 9 (Part)', 'Custom 9 (test)' and 'Custom 9' are all equivalent |
\!propname! | Insert Yate File Property | is used to insert the value of a property within a file named propname. The context menu Insert Yate File Property can be used to insert these sequences. |
\^UDTIname^ | User Defined Text Item | is used to insert the value of a UDTI. If the UDTI does not exist, nothing will be inserted. Note that due to the implementation, this sequence will work even if the UDTI is mapped to a custom field. The Insert Common UDTI context menu can be used to quickly insert common UDTI names |
\*# | User Defined Text Item in Variable | the specified variable contains the name a UDTI whose content's are to be inserted. eg. if Variable 1 contains MyData, \*1 will be replaced with the contents of a UDTI named MyData. If the item does not exist, the sequence is ignored |
\L | Disable Escape Sequence Processing | No further escape sequences are processed in the field. This is useful if you want to insert an arbitrary string which requires backslash characters and you do not want to process Yate sequences. |
\_ | Alternate Comma | insert an alternate comma ‚ character. In Involved People and Musician Credits fields, real comma characters should only be used as delimiters |
\\ | the correct form to specify a single \ character | |
\x | where x is any character other than those described above, will not be modified. eg. \x will remain \x. As additional escape sequences can be added at any time, this form is not recommended |