#1 2015-04-30 11:07

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,161

Add same numbering to a group of files, reset after n'th file.

Question:

dkperez wrote:

I want to embed a number in each file, but INCREMENT the number ever n files.......

For example, I have a set of files:

5133_canada.NEF _ _ _ so 5133.nef through 5135.xmp should have "01" embedded......
5133_canada.xmp
5134_canada.NEF
5134_canada.xmp
5135_canada.NEF
5135_canada.xmp _ _ _ end of group 01

5136_canada.NEF _ _ _ new group
5136_canada.xmp
5137_canada.NEF
5137_canada.xmp
5138_canada.NEF
5138_canada.xmp _ _ _ end of group 02

5139_canada.NEF
5139_canada.xmp
5140_canada.NEF
5140_canada.xmp
5141_canada.NEF
5141_canada.xmp
...
.....

Each set of three file pairs (a nef and an xmp is a pair) is a group,
so 5133.nef through 5135.xmp should have "01" embedded......
The next set 5136.nef through 5138.xmp should have "02" embedded......

They should look like

5133_01_canada.NEF _ _ _ "01"-group of six.
5133_01_canada.xmp
5134_01_canada.NEF
5134_01_canada.xmp
5135_01_canada.NEF
5135_01_canada.xmp

5136_02_canada.NEF _ _ _ "02"-group of six.
5136_02_canada.xmp
5137_02_canada.NEF
5137_02_canada.xmp
5138_02_canada.NEF
5138_02_canada.xmp

and so on.....


Next time, my group may be 5 pairs instead of three, so I need a way
to specify how many files should be each embedded number.

How do I do this?

wessin wrote:

I'd also love to know if this is possible.
I'm trying to figure out how to append series numbers in groups of 5, or 8, etc,
to a larger list of files, exactly as dkperez was asking. Is this possible to do in x?



 


Read the  *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)

Offline

#2 2015-04-30 11:14

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,161

Re: Add same numbering to a group of files, reset after n'th file.

Answer:

That's easy to accomplish with den4b ReNamer

History wrote:

ReNamer 5.50+ Beta 28 - ~23.05.2010
* Added option to reset serialization index every N files;
http://www.den4b.com/forum/viewtopic.php?pid=4581#p4581
http://www.den4b.com/forum/viewtopic.php?id=897



Just enter this two rules:

1) Insert:     Insert "_" at Position 5 (skip extension)
2) Serialize: Serialize Incremental from 1 step 1 repeat 6 and pad to length 2 at Position 6

( see wiki for more info: http://www.den4b.com/wiki/ReNamer )


Result:

Script Result wrote:

FROM:                     TO:
5133_canada.NEF    5133_01_canada.NEF
5133_canada.xmp    5133_01_canada.xmp
5134_canada.NEF    5134_01_canada.NEF
5134_canada.xmp    5134_01_canada.xmp
5135_canada.NEF    5135_01_canada.NEF
5135_canada.xmp    5135_01_canada.xmp

5136_canada.NEF    5136_02_canada.NEF
5136_canada.xmp    5136_02_canada.xmp
5137_canada.NEF    5137_02_canada.NEF
5137_canada.xmp    5137_02_canada.xmp
5138_canada.NEF    5138_02_canada.NEF
5138_canada.xmp    5138_02_canada.xmp

5139_canada.NEF    5139_03_canada.NEF
5139_canada.xmp    5139_03_canada.xmp
5140_canada.NEF    5140_03_canada.NEF
5140_canada.xmp    5140_03_canada.xmp
5141_canada.NEF    5141_03_canada.NEF
5141_canada.xmp    5141_03_canada.xmp


HTH? cool
 


Read the  *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)

Offline

Board footer

Powered by FluxBB