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

Reg.Apply paragraph style

$
0
0

Hi All,

 

Can you please anybody help me that how to apply the paragraph style which is available in Indesign with case insensitive in find/change grep options.

 

I have tried with below code but the style applying only with case sensitive.

 

          myStyleName = myString.substring(1, myString.length-1);

            if(myDocument.paragraphStyles.item(myStyleName) == "[object ParagraphStyle]")

            {

                myStyle = myDocument.paragraphStyles.item(myStyleName);

                myName = myStyle.name;

               

                app.findChangeTextOptions.caseSensitive = false;

                app.changeTextPreferences.appliedParagraphStyle = myStyle;

                myDocument.changeText();

                app.changeTextPreferences = NothingEnum.nothing;

                app.changeTextPreferences.changeTo = "";

                myDocument.changeText();

                app.changeTextPreferences = NothingEnum.nothing;

 

          }

 

Please help me to figure out this issue.

 

Thanks in advance.

 

Regards,

Sathya Rani M


Viewing all articles
Browse latest Browse all 37788

Trending Articles



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