by Luuk » Sun Aug 15, 2021 4:50 am
The paid version for BRU does have its own javascript to conduct the math, so there is nothing extra to be installed.
Im guessing the copier always likes to append 'space' before adding numbers at the end, so the numbering conducts like...
Scan first-stack of 50-pages (to scan the fronts) so numbering like...
Now ==> Need
1 ====> 1.1 (pg.1-front)
2 ====> 2.1 (pg.2-front)
3 ====> 3.1 (pg.3-front)
.. ====> ..1 (pg..-front)
50 ==> 50.1 (pg.50-front)
Flip this stack upside-down (to scan the backs) so numbering like...
Now => Need
51 ==> 50.2 (pg.50-back)
52 ==> 49.2 (pg.49-back)
53 ==> 48.2 (pg.48-back)
... ==> ....2 (pg...-back)
100 ==> 1.2 (pg.1-back)
Scan second-stack of 50-pages (to scan the fronts) so numbering like...
Now ==> Need
101 ==> 51.1 (pg.51-front)
102 ==> 52.1 (pg.52-front)
.... ==> ....1 (pg....-front)
150 => 100.1 (pg.100-front)
Flip second-stack over (to scan the backs) so numbering like...
Now ==> Need
151 ==> 100.2 (pg100-back)
152 ===> 99.2 (pg.99-back)
.... ===> ....2 (pg....-back)
200 ===> 51.2 (pg.51-back)
So really the best way to fix any numbering like this, especially if its a lot of paper stacks, is with the javascript code.
If you like to experiment, or with the paid version, you can put this code into the menu 'Special, Javascript Renaming'...
stack=50
fstart=name.replace(/(.+ )\d+$/, '$1' )
fnumbr=name.replace(/.+ (\d+)$/, '$1' )
if (/ \d+$/.test(name)) {
// Front Pages
if ((Math.ceil(fnumbr/stack)) % 2 == 1) {
newName= fstart + (fnumbr-(Math.floor(fnumbr/(stack*2)))*stack) + '-front'}
// Back Pages
if ((Math.ceil(fnumbr/stack)) % 2 == 0) {
mult=Math.ceil(fnumbr/(stack*2))
newName= fstart + (fnumbr-(((2*mult*stack)-1) - (2*((2*mult*stack)-fnumbr)) - ((mult-1)*stack))) + '-back'}}
Bru will present all changes inside the "New Name" column, but the Rename button wont conduct without having the paid license.
The good part for this method, is that if you are scanning different sized stacks, then you could just edit the stack=50 line.
Another way could be using very many regexes, but if its more than just one stack or two, its probably not really worth it.
If you have the paid version, please to change -front ==> .1 and -back ==> .2 so the names can be like your description.
If I can think of another way, or any better solutions to conduct this math, I will try to post them here again.
It seems like someone else did ask this before, but now Im not finding it anywhere, so maybe he can find this one.