Share your custom Actions

Here is a 'Format value' action, which set up a tag-field FILENAME_NEW from tag-fields TRACK, ARTIST, ALBUM, TITLE in a dynamically way.
A not existing tag-field will not be used to create the new filename.
At least one of those tag-fields should be exist, otherwise the new filename will be empty, that means, FILENAME_NEW will not be created.

The action formatstring uses the '[...] square bracket clamb' operator to check the existence of a tag-field and the '$trimLeft' function to remove unwanted leading space and hyphen characters.

Actiontype 5: Format value
Field: FILENAME_NEW
Formatstring:

$trimLeft([$num(%TRACK%,2)][' - '%ARTIST%][' - '%ALBUM%][' - '%TITLE%],' -')

The result can vary ...
01
01 - album
01 - album - title
01 - artist
01 - artist - album
01 - artist - album - title
01 - artist - title
01 - title
album
album - title
artist
artist - album
artist - album - title
artist - title
title

The following modified Formatstring creates a value even when all given tag-fields are empty ...

$if2($trimLeft([$num(%TRACK%,2)][' - '%ARTIST%][' - '%ALBUM%][' - '%TITLE%],' -'),$num(%_counter%,2)' - Unknown')

DD.20110412.1006.CEST