EXIF FileNumber

Advanced Renamer forum
#1 : 16/10-17 01:26
Lukasz
Lukasz
Posts: 1
Hi! I Sound my old photos and I would like to change the names. The problem is that this program (Adv Renamer) does not support EXIF data like "File Number". I can read File Number from EXIF details but I don't know how to change the file name to The Number. Please help ale sorry for my English.


16/10-17 01:26
#2 : 21/10-17 11:22
Brandon Earnhardt
Brandon Earnhardt
Posts: 4
Reply to #1:
Need to know what file number your referring to. What did you enter to get the number? If it is an ExifTool tag, you can use the 'New Name' method and enter '<ExifTool:{TagNameHere}>' into the 'New Name' field.


21/10-17 11:22
#3 : 05/03-18 18:27
Florencio Rodriguez
Florencio Rodriguez
Posts: 2
Helo Brandon,

I am using your script to rename photo files, I made some modifications to use it also with DNG files.
When I use your script it works well with JPG and NEF, even applied to a large number of files.
but when the files are DNG and the number exceeds 120 (approximately) I get an error.
- Acces violation at adress 6AA3F7B5 in module "JS32.DLL" Read of address 055DF03C.


This is my variant of your script:
// ARRAYS
var extensions = ["JPG","JPEG","GIF","BMP","PNG","NEF","CR2","CRW","RAW","RAF","TIF","TIFF","DNG","PSD"];

// FUNCTIONS
function setVars(x) {
year = item.exifToolValue(x).substring(0,4);
month = item.exifToolValue(x).substring(5,7);
day = item.exifToolValue(x).substring(8,10);
hour = item.exifToolValue(x).substring(11,13);
minute = item.exifToolValue(x).substring(14,16);
second = item.exifToolValue(x).substring(17,19);
if (item.exifToolValue(x).substring(20,22) != '') {
subsecond = item.exifToolValue(x).substring(20,25);
} else {
subsecond = '00';
}
return year + month + day + '_' + hour + minute + second + subsecond;
}

// MAIN
if (extensions.indexOf(item.exifToolValue('FileTypeExtension').toUpperCase()) != -1) {
if (item.exifToolValue('SubSecDateTimeOriginal') != '') {
return setVars('SubSecDateTimeOriginal');
} else if (item.exifToolValue('DateTimeOriginal') != '') {
return setVars('DateTimeOriginal');
} else {
return setVars('FileModifyDate');
}
}


05/03-18 18:27