3 Replies Latest reply on Jan 30, 2015 9:11 AM by rudytj

    adding a "always" keyword to metatag


      I have (with prior help from you folks) written the below script which is working flawlessly among all my co workers. Till the boss said he want our company name to appear every time in the keyword area.

      the way it currently works is the script will automatically fill in certain areas, gather all image names and place them in the keywords and then open the file info dialog box for the worker to add any additional info that would be appropriate.


      how can i have the script continue to perform as it is but have the first keyword be my company name?





      //-----document title and copyright---------

      var myDocument = app.activeDocument;

      with (myDocument.metadataPreferences){ 

          copyrightInfoURL = "XXXX.com" 

          copyrightNotice = "© 2015 XXXXX"; 

          copyrightStatus = CopyrightStatus.yes; 

          documentTitle = myDocument.name.split(".indd")[0];


      //---------------------add document name-------------------------------

      with (myDocument.metadataPreferences){

              documentTitle = myDocument.name.split(".indd")[0];


      //-----------------------images to keywords--------------------------//

      app.activeDocument.metadataPreferences.keywords = app.activeDocument.links.everyItem().name;

      //-------------open file info dialog box---------------------