[X] %_total_files% fails

1 See that file:///C:/Program%20Files/Mp3tag/help/options_export.html#placeholder says

2 Select five tracks
3 Run this export script

$loop(%dummy%)%_total_files% $loopend()

Expected: 5 5 5 5 5
Observed: 5 4 3 2 1

Anyone know a workaround? The loop-broken $puts/$get need not apply.

Anyone know a workaround?

$loop(%dummy%)$sub($add(%_counter%,%_total_files%),1) $loopend()
$repeat(%_total_files% ,%_total_files%)

Thanks, but doesn't work here.

Global placeholders are calculated by $loop and, thus, only available outside of that loop.

OK, thanks...

... but that does not accord with the Help, especially since the Help says Global.

May I suggest the Help be fixed, e.g.:

Global placeholders (providing totals for the preceeding $loop/$loopend)

Anyone know a workaround?

I found this workaround:

$loop(%dummy%)
$puts(fixedtotalfiles,$sub($add(%_counter%,%_total_files%),1))
... %fixedtotalfiles% ...
$loopend()

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.