8 Replies Latest reply on Sep 6, 2015 9:09 PM by sreekarthik.k@gmail.com

    add tab character before particular paragraph style content

    Level 1

      I need to add tab character before particular paragraph style content

       

       

      app.findTextPreferences.appliedParagraphStyle = app.activeDocument.paragraphStyles.item("IDX2"); 

      list = app.activeDocument.findText(); 

      // 2. For each found item ... 

      for (i=0; i<list.length; i++) 

      app.select(list[i])

      app.selection[0].insertionPoints[0].contents="\t"

       

      }

       

       

      But the above code only working in the first occurance. But I need to add the tab character all the applied paragaph content

       

       

      How to do this