Dealing With Zeros in Filenames

M4A tag spec stores %track% as integers not strings like MP3/FLAC, so leading zeros are not possible if that’s the file you are working with.

If you want to do tag → filename, you can try: $iflonger(%track%,1,%track%,$num(%track%,2))

Basically, if the %track% length is longer than 1 (e.g., two digits), then %track% will be used, if %track% is 1 digit, then a leading zero will be prepended to %track% in the filename.