Letter and counter rollower
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??
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??
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);
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);
Reply to #2:
Yeah that worked perfectly, will save me days of work.
Thanks !
Yeah that worked perfectly, will save me days of work.
Thanks !