Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Viewing all articles
Browse latest Browse all 37788

textStyleRange with dropCap or grepStyle - Not working!

$
0
0

Hello!

(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)

That:

 

 

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;

                     }

 

 

But!

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!


Viewing all articles
Browse latest Browse all 37788

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>