0 Replies Latest reply on Apr 12, 2010 5:03 AM by hm_arul

    Problem in adding metadataPreferences Keywords

    hm_arul Level 1

      Hi scripters,

       

      I am tring to add keyword metadata in my INDD file. Here is my code it works good but I am getting output with open and close DOUBLE QUOTES. I dont want to have double quotes in my keywords.

       

       

      app.findTextPreferences = app.changeTextPreferences = null;
      app.findTextPreferences.appliedParagraphStyle = "Kwd-l";
      var myResults = app.activeDocument.findText();

      for (f = 0; f < myResults.length; f++)
      {
      var mykeyw =myResults[f].contents;

      app.activeDocument.metadataPreferences.keywords=[mykeyw];

      }

       

      this results

       

      "keyword1, keyword2, keyword3,"

       

      I just want to have keywords without QUOTES

       

      keyword1, keyword2, keyword3

       

      how can i do this

       

      thanks in advance

       

      regards

      a r u l