Application icon

File to Tag from Content

This function can be used to effectively scan a field or named variable by applying a File to Tag template. The supplied template can be chosen from the popup list or manually entered. The only reason to manually enter the template name is if you wish to specify the name at runtime. The template field may contain any of the escape sequences described in Escape Sequences. Note that regardless of the execution mode, the template field is only evaluated once. As this is the case it may be more appropriate to indirectly specify a template in a named variable as opposed to one of the Variable 0 through Variable 9 fields.

When specifying the content in a named variable, any extracted fields will be applied to all files in the current execution mode. ie. the template is only evaluated once. When specifying the content in a field, the template will be applied once per file (assuming stepwise execution mode).

As this function uses the underlying File to Tag functionality, you can do some interesting things. The File to Tag functionality requires a valid path and a filename extension associated with an audio file type that Yate processes. If the content does not begin with a /, one is applied. If the content does not end with a valid filename extension, one will be supplied. The supplied text is ignored. However, this does mean that you can take advantage of the template's ability to handle folder extraction via one or more Folder Start tokens. eg. for the following template:

❨Track❩·-·❨Title❩❨Folder Start❩❨Album❩❨Folder Start❩❨Artist❩

and the following content:

artist name/album name/title

all will work as expected.

Note than scanning for a / character will never work. If you want to scan fields delimited by / characters, you will have to design the template to use an alternate character and to replace the slash characters with whatever character you have chosen. For example if you have content saved as composer/conductor. Use the following template:

❨Composer❩●❨Conductor❩

and do the extraction as:

Replace "/" in named variable 'content' with "●"
File to Tag (Composer/Conductor) with content from named variable 'content'

Additional File to Tag information can be found in:

Preferences - File to Tag templates

The File to Tag Template Editor

The File to Tag Action Statement

Information on alternate means of parsing or scanning

Find and Remove

Regular Expression

Replace

Scanner

List Statements