3 Replies Latest reply on Jul 21, 2010 1:15 PM by [Jongware]

    trying to get Xinet XMP data

    Davey J.

      Hi Everyone,

       

      I'm trying to create a slug script for InDesign CS3 that retrieves custom Xinet metadata from a custom XMP panel.  I was able to complete this task in Illustrator CS3 by using the following code to connect to the XMP data:

       

      //--------------------------

      // load the library:

       

      if (ExternalObject.AdobeXMPScript == undefined) {

           ExternalObject.AdobeXMPScript = new ExternalObject('lib:../../Frameworks/AdobeXMPScript');

      }

       

      // get the custom client field:

       

      var docXmp = new XMPMeta(docRef.XMPString);

      var xmpClient = docXmp.getProperty('http://ns.xinet.com/ns/xinetschema#',"CLIENT");

      alert(xmpClient);

      //--------------------------

       

      I've noticed that the Frameworks file for InDesgin is AdobeXMP.framework and not AdobeXMPScript, and the XMPMeta object does not apparently exist in AdobeXMP.framework

       

      Am I missing something here?  I find it very odd that Adobe would use different libraries across their applications for something that's supposed to be a standard.  How can I retrieve the Xinet data?

       

      Thanks,

       

      -Dave