XMPFile and RAW file problem
Has anyone come across or knows the solution to a problem?
There are two RAW files "1.NEF" and its full copy "1.NEF_".
The script throws an error with the original file extension.
ExternalObject.AdobeXMPScript = new ExternalObject("lib:AdobeXMPScript");
try {
var s = "C:\\1.NEF";
var file = new XMPFile(s, XMPConst.FILE_UNKNOWN, XMPConst.OPEN_FOR_READ);
alert(s + "\nOK!");
}
catch(e) { alert(s + "\n" + "WTF! " + e); }
try {
var s = "C:\\1.NEF_";
var file = new XMPFile(s, XMPConst.FILE_UNKNOWN, XMPConst.OPEN_FOR_READ);
alert(s + "\nOK!");
}
catch(e) { alert(s + "\nWTF! " + e); }
The error is present in CS6 - CC2018.
Is this a bug and, if so, is Adobe going to fix it?
