Copy link to clipboard
Copied
ExternalObject.AdobeXMPScript = void 0 === ExternalObject.AdobeXMPScript ? new ExternalObject("lib:AdobeXMPScript") : ExternalObject.AdobeXMPScript;
var xmpData= new XMPMeta(app.project.xmpPacket);
$.setenv(xmpData.getProperty(XMPConst.NS_XMP_MM, "DocumentID").value, []);
alert(
$.getenv(xmpData.getProperty(XMPConst.NS_XMP_MM, "DocumentID").value)
)
on Mac it returns "" ,
on Win it returns null
Any idea?
Copy link to clipboard
Copied
Could be a bug with your version of AE. I just tested this and it's working in AE 2022:
$.setenv('mybar', 'abc');
$.getenv('mybar'); // 'abc'
Here's some info on those methods: https://extendscript.docsforadobe.dev/extendscript-tools-features/dollar-object.html?highlight=geten...