Access violation at address 5D88F7B5 in module 'js32.dll'. Read of address 0823F03C.

Advanced Renamer forum
#1 : 03/11-15 23:26
Anto
Anto
Posts: 2
First of all thank you for the great tool! Specially the scripting feature. If I could suggest future functionalities to be implemented, CSV export from script and EXIF Metadata update would make it the one and only renaming tool.

I am writing because I am getting error message when I try to rename several files using a script. Access violation at address 5D88F7B5 in module 'js32.dll'. Read of address 0823F03C.

I am using latest version of the tool: Advanced Renamer 3.68 - 1. nov. 2015

I am geting this message in two different situations:
- When I try to rename more than 11 files at once. The list of files stays blank, and I receive the error message. I have tryed turning off Auto test and the script. I'm pretty sure the script is working correctly, because if I process 11 at a time it works fine.
- When I try to rename files in my NAS. Following instructions from a previous post, I mapped as a drive (z:) the (\\NAS\) direction, and still get the same issue.

Could you please help me with this issue or if there is any possible workaround.

Thank you,
BR


03/11-15 23:26
#2 : 15/11-15 16:47
Kim Jensen
Kim Jensen
Administrator
Posts: 756
Reply to #1:
Can you explain further about the "CSV export from script feature"? I am not sure I understand what this means.

The EXIF metadata update feature has been requested many times. I have considered it many times, but have always rejected it. If I one day attempts to implement this feature, I will use the ExifTool util (included with Advanced Renamer) to do the actual metadata update.

Unfortunately the JavaScript engine is a but unstable. Can you post your script? Then I might be able to supply a couple of tips for making it more stable.


15/11-15 16:47
#3 : 18/11-15 11:23
Anto
Anto
Posts: 2
Reply to #2:

Currently the tool is able to export a CSV file by selecting the columns in the file list view (in the middle of the screen) and right click “save list”.

This is very useful for example, to double check large lists of files to rename previous to executing, by checking the original name vs the new name or check that all dates are in a range (with some formulas in Excel it is very easy to check).

My suggestion was to include this functionality directly in a script or even as a defined mode. You would select the data you want to export by creating an array of strings (here it would be interesting not only to export predefined columns, but for example any EXIF data) and export to file with a defined function or “return” command to a TXT or CSV.

This gets more powerful when defining command lines as .BAT file, in which you could automate the renaming of any file included in a folder, and get a detailed log of original and new data.



The EXIF update, I agree the best way would be using ExifTool directly, embedded in the code as it is a very powerful tool in itself.



Regarding JavaScript, this is my code:

Initial sequence:

// Define regular expressions that will be subtracted from upper folder to obtain the tag that will be used to rename the files. My folders are structured as “YYYY-MM TAG“ or “YYYY-MM-DD TAG”
var expYYYYMM = /\d\d\d\d-\d\d\s/g;
var expYYYYMMDD = /\d\d\d\d-\d\d-\d\d\s/g;


Main sequence:

// Select upper folder of the file
var directory = item.path.split('\\');
var upperfolder = directory[directory.length-2];

// Obtain tag by replacing dates from the name of the folder
var tag;
tag = upperfolder.replace(expYYYYMMDD, '');
tag = tag.replace(expYYYYMM, '');

// Define date based on type of file: IMAGE or VIDEO
var fecha;
var filetype = item.exifToolValue('MIMEType');

// If IMAGE get 'DateTimeOriginal', else get 'CreateDate'
if (filetype.search("image")>=0) {
fecha = item.exifToolValue('DateTimeOriginal').replace(/:/g,'-');
} else {
fecha = item.exifToolValue('CreateDate').replace(/:/g,'-');
}

// Return file name YYYY-MM-DD HH-MM-SS TAG.ext
return fecha+" "+tag+item.extension;


18/11-15 11:23 - edited 18/11-15 13:40