Unable to load the AdobeXMPScript library in Indesign CC 2021
Hi everyone,
I am trying to execute the following method to load AdobeXMPScript library. This perfectly works in Indeisgn CC 2020 and console 'success' which is expected behaviour but unfortunately in Indesign CC 2021, it gives an alert 'Unable to load the AdobeXMPScript library'
function loadXMPLibrary() {
if (!ExternalObject.AdobeXMPScript) {
try { ExternalObject.AdobeXMPScript = new ExternalObject('lib:AdobeXMPScript'); }
catch (e) { alert('Unable to load the AdobeXMPScript library!'); return false; }
}
return true;
}
var myFile = app.activeDocument.fullName;
// check library and file
if (loadXMPLibrary() && myFile !== null) {
xmpFile = new XMPFile(myFile.fsName, XMPConst.FILE_INDESIGN, XMPConst.OPEN_FOR_UPDATE);
var myXmp = xmpFile.getXMP();
}
if (myXmp) {
$.writeln('success')
}
What are the reasons behind it?
Is there any change to load these libray in latest version?
OS Version : MacOS BigSur

