1 Reply Latest reply on Apr 11, 2011 10:32 PM by csm_phil

    XMP metadata in active indd document

    S. Sankar Level 1

      Is there any possibility to add XMP metadata in the active InDesign document using scripting?





        • 1. Re: XMP metadata in active indd document
          csm_phil Level 4

          Hi Sankar,


          You can use the Scripting guide example below here.


          var myDocument = app.activeDocument;
          with (myDocument.metadataPreferences){
          author = "Adobe";
          copyrightInfoURL = "http://www.adobe.com";
          copyrightNotice = "This document is copyrighted.";
          copyrightStatus = CopyrightStatus.yes;
          description = "Example of xmp metadata scripting in InDesign CS";
          documentTitle = "XMP Example";
          jobName = "XMP_Example_2003";
          keywords = ["animal", "mineral", "vegetable"];
          //The metadata preferences object also includes the read-only
          //creator, format, creationDate, modificationDate, and serverURL
          //properties that are automatically entered and maintained by InDesign.
          //Create a custom XMP container, "email"
          var myNewContainer = createContainerItem("http://ns.adobe.com/xap/1.0/", "email");
          setProperty("http://ns.adobe.com/xap/1.0/", "email/*[1]", "someone@adobe.com");