Letter and counter rollower

Advanced Renamer forum
#1 : 19/07-21 12:43
Eirik Karlsen
Eirik Karlsen
Posts: 2
Hi,
I've photographed a microfiche (one of 40 !). The microfiche contains 208 images arranged in
rows B -> N, and columns 1->16. Like this:
B1......B16
C1......C16
.
.
N1.....N16

They were also photographed in that order, and the camera contains 208 images named
img_1.....img_208

I need to rename those images to their row/column name... This means start at B01 (for img_1) and count to B16 (for img_16), then C01 (for img_17), and so on.

Is this possible in AR??


19/07-21 12:43 - edited 19/07-21 12:46
#2 : 19/07-21 13:57
David Lee
David Lee
Posts: 1125
Simple using Script method!

n = item.name.match(/\d{1,3}/) - 1;
num = n % 16 + 1;
alpha = String.fromCharCode((Math.floor(n / 16) + 66));
return alpha + ('0' + num).slice(-2);


19/07-21 13:57
#3 : 19/07-21 15:36
Eirik Karlsen
Eirik Karlsen
Posts: 2
Reply to #2:
Yeah that worked perfectly, will save me days of work.
Thanks !


19/07-21 15:36