I am in the process of setting up an Action for renaming recorded podcasts. Each podcast has two files: one lossless (FLAC) and one lossy (MP3).
I wish to rename the FLAC files differently than the MP3 files, so it's easier to differentiate between the lossless and lossy versions.
I found some RegEx on the forum that renames the files based on their creation date, but for the FLAC files I wanted to append the string '[original]' after the RegEx.
I don't personally have a knowledge of RegEx, but I do know that you can include conditional operators ('if'). Does anyone have an answer?
You did not show the specific Regular Expression, you did talk about, so I assume there is no RegExp involved, but only basic Mp3tag scripting features.
If you want to apply an action to append some data to an existing tag-field content, then the following proposals may help.
Set Filter
"%_extension%" IS "FLAC"
Use Action
Action: Format value
Field: _FILENAME
Formatstring: %_filename%' [original]'
... or ...
Use Action
Action: Format value
Field: _FILENAME
Formatstring: $if($eql($lower(%_extension%),'flac'),%_filename%' [original]',%_filename%)
Because %_extension% returns always lower cased names this should work too ...
Formatstring: $if($eql(%_extension%,'flac'),%_filename%' [original]',%_filename%)
If you set your system's date time display according to ISO 8601, then you do not need to convert the file's creation date tíme, that means %_file_create_date% will return immediately '2012-05-31'.