0 Replies Latest reply on Sep 9, 2013 2:25 AM by 131772el

    textStyleRange with dropCap or grepStyle - Not working!



      (Yes, that again me, that don`t know English, everything is from Google Translate ...)



      I created a script that changes the text width settings (horizontalScale)




      var m = app.activeDocument.selection [0]. textStyleRanges;

           var myin = app.activeDocument.selection [0]. characters [-1]. index;

           for (a = 0; a <m.length; a + +)


                       m [a]. horizontalScale = m [a]. horizontalScale-1;





      If you have active or GREPSTYLE dropCapStyle the "textStyleRange" does not recognize it at all, and it disrupts everything.



      Do you have advice?



      Thank you very much!