2 Replies Latest reply on May 12, 2009 7:24 AM by cditcher

    CS4 JavaScript for creating an index based on paragraph style

    cditcher

      I need to create an index based on a paragraph style. Essentially, where ever the paragraph style "Name" occurs in my document I would like to place an index marker which encapsulates all the contents of "Name." I  have tried this with GREP, but cannot (as far as I know) insert an index marker using this method.

       

      I would like to create a javascript which will loop through my document and tag each instance of "Name" with an index maker, but I am too much of a js noobie to figure this out. Has anyone found a solution to a similar problem?

       

      Any help is much appreciated.

       

      Thx

       

      cditcher