INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Problem with counter() for rename files. Possible bug?  (Read 2359 times)

cron0sRXR8

  • Galactic Citizen
  • ****
  • Posts: 296
Problem with counter() for rename files. Possible bug?
« on: April 19, 2013, 04:00:01 pm »

Hi, when I try rename files with counter() function the program don't start in 1.

I try this for rename files:

"video.mp4 - Counter()"

when I do it this, in the preview name appear numbers not correct. Not appear 1, 2, 3... Appear 46546, 54654, 77898... when you move the mouse the numbers are change.

How to solve this??

thank you!
Logged

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9139
Re: Problem with counter() for rename files. Possible bug?
« Reply #1 on: April 20, 2013, 02:27:48 am »

If you are using the "rename, move and copy files" tool, use CustomData(#) instead.

"video.mp4 - customdata(#)"

This will number them sequentially from 1 to whatever. If you want the single digits to padded, 01 as opposed to 1, wrap it up in padnumber()...
"video.mp4 - padnumber(customdata(#),2)

If you are not using the rename, move and copy files tool, read up on the linked info regarding how "counter()" works, and let us know if that helps. If you have more questions, that's fine too, just ask away.
Read this section of the expressions page on the wiki, as well as the "customdata()" section that follows it. There two links in there for more info, right click and open in new tab if you wish to keep the wiki page open.

-marko

cron0sRXR8

  • Galactic Citizen
  • ****
  • Posts: 296
Re: Problem with counter() for rename files. Possible bug?
« Reply #2 on: April 20, 2013, 11:04:09 am »

This will number them sequentially from 1 to whatever. If you want the single digits to padded, 01 as opposed to 1, wrap it up in padnumber()...
"video.mp4 - padnumber(customdata(#),2)


works very fine!

very thanks!!!
Logged

cron0sRXR8

  • Galactic Citizen
  • ****
  • Posts: 296
Re: Problem with counter() for rename files. Possible bug?
« Reply #3 on: April 21, 2013, 01:08:35 pm »

Hi another time!

If I want start in 600, what is the expression?? it's 600, 601, 602...
I need an expression that work from a any number. Not only starting at number one

"video.mp4 - customdata(#)"

video.mp4 - 1
video.mp4 - 2
video.mp4 - 3
video.mp4 - 4
...

I need a expression for raname doing this:

Start in 645.

video.mp4 - 645
video.mp4 - 646
video.mp4 - 647
video.mp4 - 648
...

What is the code??

many thank you!!


Logged

cron0sRXR8

  • Galactic Citizen
  • ****
  • Posts: 296
Re: Problem with counter() for rename files. Possible bug?
« Reply #4 on: April 22, 2013, 04:34:49 am »

solved:
video name Math(0 + customdata(#))

Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Problem with counter() for rename files. Possible bug?
« Reply #5 on: April 22, 2013, 11:42:33 am »

FYI: Counter() continues to count so long as it is used.  It will reset back to 0 after about 5 seconds of non-use.  So it is designed for one-shot usage for things like renaming or indexing, but not for use in a pane or file list column.
Logged
The opinions I express represent my own folly.

cron0sRXR8

  • Galactic Citizen
  • ****
  • Posts: 296
Re: Problem with counter() for rename files. Possible bug?
« Reply #6 on: April 22, 2013, 12:48:23 pm »

FYI: Counter() continues to count so long as it is used.  It will reset back to 0 after about 5 seconds of non-use.  So it is designed for one-shot usage for things like renaming or indexing, but not for use in a pane or file list column.

ok! thank for the information!!
Logged
Pages: [1]   Go Up