OK, I thought it was working but I cannot get past this.
I always get the error "XMPMetaObject" is undefined.
Here is my code.
main();
function main(){
var myDocument = app.documents.item(0);
//getProperty(myDocument);
var myProperty = XMPMetaObj.getProperty("http://ns.adobe.com/xap/1.0/", "LCCRevisionNotes"[XMPConst.STRING]);
alert(myProperty)
}
function loadXMPLibrary(){
if ( !ExternalObject.AdobeXMP.framework ){
try{ExternalObject.AdobeXMP.framework = new ExternalObject("lib:AdobeXMP.framework");}
catch (e){alert("Unable to load the AdobeXMPScript library!"); return false;}
}
return true;
}