Tag to filename


#1

I greatly enjoy your program, but occasionally get frustrated with my inability to do some things. I'm sure the problem is me, not the program!
I wish to do two things when converting a tag to a filename.

  1. Remove invalid characters automatically and replace them with a comma.
    To do this I have entered the following formatstring.
    $validate("%artist% - %album% - %track% - %title%", ",")
    This works well.
  2. Convert any single digit track numbers to two digits by adding a leading zero.
    I can do this by using the formatstring
    %artist% - %album% - $num("%track%",2) - %title%

I want to do this in one step, so I tried to combine the ideas by doing this
$validate("%artist% - %album% - $num("%track%",2) - %title%", ",")
This does not work - I get a message saying that there are too many parameters.
Why will this not work? Am I trying to do something impossible?
Obviously, I can do what I want in a series of steps, but that is not what I prefer to do. It would be elegant to do it in one step.
Any ideas??


#2

Fifer,

you can use
$validate("%artist% - %album%", ",") - $num("%track%",2) - $validate("%title%", ",")

Nesting of these functions is not possible at the moment.

Best regards,
~ Florian


#3

Thanks - that worked! I would never have found that on my own. I learn new things about your program almost every day.