
I have the Extract EXIF data set in Renaming Options so that isn't the problem.
So please help with 2 errors thank you in advance.
Condition Error
Object: 1863_22_10_2019
SyntaxError: Unexpected token > in : exif('%d‘).getTime()&& exif('%d‘).getTime() != 0 in Filters (12) -> Conditio [Lined Start:68 End:69]
object('modified').getTime() != exif('%d').getTime() && exif('%d').getTime() != 0
function getSecondPart(str) {
var index = str.indexOf(" "); // Gets the first index where a space occours
return name.substring(index);
}
function getFirstPart(str) {
var index = str.indexOf(" "); // Gets the first index where a space occours
return name.substring(0,index);
}
var d = new Date(Date.parse(getSecondPart(name)));
var mm = d.getMonth() + 1; // getMonth() is zero-based
var dd = d.getDate();
var yyyymmdd = [d.getFullYear(),
(mm>9 ? '' : '0') + mm,
(dd>9 ? '' : '0') + dd
].join('');
newName = getFirstPart(name) + ' ' + yyyymmdd;
Date.prototype.yyyymmdd = function() {
var mm = this.getMonth() + 1; // getMonth() is zero-based
var dd = this.getDate();
return [this.getFullYear(),
(mm>9 ? '' : '0') + mm,
(dd>9 ? '' : '0') + dd
].join('');
};
function getSecondPart(str) {
var index = str.indexOf(" "); // Gets the first index where a space occours
return name.substring(index);
}
function getFirstPart(str) {
var index = str.indexOf(" "); // Gets the first index where a space occours
return name.substring(0,index);
}
var d = new Date(Date.parse(getSecondPart(name)));
newName = getFirstPart(name) + ' ' + d.yyyymmdd();