5 Replies Latest reply on Nov 11, 2014 7:04 AM by Murali_Vetha

    How to add para styles in mychange

    Murali_Vetha Level 1

      Hi All,


      In the below coding is lots of find and change. Now I need to mychange one more additional change with S2, i.e. applied one of the paragraph style. Please advice and see below my coding.




      var myfind = ["(<display>)(.+)(</display>)", "(<verse>)(.+)(</verse>)"]
      var mychange = ["$2", "$2"]
      for (k=0; k<myfind.length; k++)
          app.findGrepPreferences = app.changeGrepPreferences = null;
          app.findChangeGrepOptions.includeMasterPages = false;
          app.findGrepPreferences.findWhat = myfind[k];
          app.changeGrepPreferences.changeTo = mychange[k];