Does Retrobatch allow pulling something like date information from the filename or filesystem metadata, to use as data that can be inserted into the image’s EXIF metadata?
Example: I have a lot of older JPEG photos that have (almost) nothing in the way of EXIF metadata. The filenames, however, contain YYYY-MM-DD data. I’d like to extract that from the name and insert it into the EXIF as image date — preferably without any recompression. In some of these files, the filesystem creation/modification date(s) may also be useful if they can be extracted for re-use.
“Fuzzy Date Set” is the name. It’ll parse the dates out in the format “YYYY-MM-DD extra stuff here”. If you want to adopt it for your case with the incrementing numbers, that’ll require a little bit of modification (maybe add a split based on the character ‘-’).
How about some actual javascript. Replace lines 15 and 16 in your MainScript.js with the following:
// Assumes dates are year 1500 thru 2400
// Matches first date found in the form of 2014-09-04 or 20140904; leading zeros required.
const ISODateRegex = /(?:1[5-9]|2[0-4])\d{2}-?[01]\d-?[0-3]\d/;
var theDate = theFileName.match(ISODateRegex);