2 Replies Latest reply on Mar 20, 2015 4:07 AM by camilo umana

    How to select a character style instead of the whole selection of text when running a script?

    camilo umana Level 1

      I have a script, that after selecting text, can modify the appearance of digits. This action, consequently, covers all the numbers in the document through:

       

           01. if (app.selection.length != 1)

           [... here, the rest of the script]


      How to modify this line to apply the changes only to those digits previosuly tagged with an specific character style?


      Thanks.