Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 80307

Re: Trying to get InDesign XMP values

$
0
0

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;

}


Viewing all articles
Browse latest Browse all 80307

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>