1 Reply Latest reply on Oct 16, 2012 11:04 AM by Gonterman1201

    Trying to add Metadata in CS3?

    Gonterman1201 Level 1

      Currently from CS4 - CS6 I am loading ExternalObject.AdobeXMPScript=new ExternalObject("lib:AdobeXMPScript"); and its working fine. CS3 does not recognize this object and gives me an error 89858 unknown object. So just to be clear this is what I have.

       

      var myPoo=myDocument.metadataPreferences;
      with (myPoo){
                  if (ExternalObject.AdobeXMPScript == undefined) {
                  ExternalObject.AdobeXMPScript = new
                  ExternalObject("lib:AdobeXMPScript");
                  var destNamespace = "http://www.hjedesign.com/metadata/1.0/";
                  // define new namespace
                  XMPMeta.registerNamespace(destNamespace,"edmd:");
                  }
              
              
                  xmp = new XMPMeta();
                  xmp.setProperty("http://www.hjedesign.com/metadata/1.0/", "color", selectedColor,);
                  var myNewColor=setProperty("http://www.hjedesign.com/metadata/1.0/", "color", selectedColor,);
      

      I tried this but it also did not work 

      var mylib = new ExternalObject( "lib:AdobeXMPScript" );
      

       

      If anyone has any ideas about changing metadata in CS3 I would take any advice.

       

      Thank you very much,

      Brett