IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> [X] %_total_files% fails, V2.44
chrisjj
post Sep 22 2009, 20:40
Post #1


Member


Group: Full Members
Posts: 1236
Joined: 25-October 05
Member No.: 2273
Mp3tag Version: -



1 See that file:///C:/Program%20Files/Mp3tag/help/options_export.html#placeholder says
QUOTE
Global placeholders (calculated per loop)
%_total_files% Total number of files
2 Select five tracks
3 Run this export script
CODE
$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.

This post has been edited by chrisjj: Oct 2 2009, 00:53
Go to the top of the page
 
+Quote Post
chrisjj
post Sep 22 2009, 20:50
Post #2


Member


Group: Full Members
Posts: 1236
Joined: 25-October 05
Member No.: 2273
Mp3tag Version: -



> Anyone know a workaround?

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


Go to the top of the page
 
+Quote Post
newser
post Sep 23 2009, 11:30
Post #3


Member


Group: Full Members
Posts: 199
Joined: 30-January 09
Member No.: 8442
Mp3tag Version: 2.48c



ZITAT(chrisjj @ Sep 22 2009, 21:50) *
Expected: 5 5 5 5 5

...

> Anyone know a workaround?


QUELLTEXT
$repeat(%_total_files% ,%_total_files%)

Go to the top of the page
 
+Quote Post
chrisjj
post Sep 23 2009, 13:14
Post #4


Member


Group: Full Members
Posts: 1236
Joined: 25-October 05
Member No.: 2273
Mp3tag Version: -



QUOTE (newser @ Sep 23 2009, 11:30) *
CODE
$repeat(%_total_files% ,%_total_files%)
Thanks, but doesn't work here.
Go to the top of the page
 
+Quote Post
Florian
post Sep 25 2009, 13:05
Post #5


Developer


Group: Admin
Posts: 7621
Joined: 12-December 01
From: Germany, Dresden
Member No.: 203
Mp3tag Version: 2.55a



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


--------------------
♫ If you like using Mp3tag please donate to support further development.

Go to the top of the page
 
+Quote Post
chrisjj
post Oct 2 2009, 01:04
Post #6


Member


Group: Full Members
Posts: 1236
Joined: 25-October 05
Member No.: 2273
Mp3tag Version: -



QUOTE (Florian @ Sep 25 2009, 13:05) *
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)


Go to the top of the page
 
+Quote Post
chrisjj
post Dec 14 2009, 13:09
Post #7


Member


Group: Full Members
Posts: 1236
Joined: 25-October 05
Member No.: 2273
Mp3tag Version: -



> Anyone know a workaround?

I found this workaround:
CODE
$loop(%dummy%)
$puts(fixedtotalfiles,$sub($add(%_counter%,%_total_files%),1))
... %fixedtotalfiles% ...
$loopend()


This post has been edited by chrisjj: Dec 15 2009, 12:41
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 19th May 2013 - 01:16