2 Replies Latest reply on Apr 12, 2012 7:03 AM by Sen.Soft

    change of character color

    Sen.Soft Level 1

      Hi, I have a Indesign Document with Number of Paragraph styles in the character Color Black, Now I want to change the color to Red, Could you one any give me a script to help me on this.,

        • 1. Re: change of character color
          csm_phil Level 4

          Hi Sen,

           

          Please try the below js code and revert back if you need more help. please whatever you asking in forum, please post what you tried in your end then you will get answer easilly & short time around.

           

          I hope you expect this!

           

          var myDoc = app.activeDocument;
          var myPStyle = myDoc.allParagraphStyles;
          //alert(myPStyle.length);
          for(i=2; i<myPStyle.length; i++){
               if(myPStyle[i].fillColor.name=="Black"){
                    myPStyle[i].fillColor="RED";
                    }
               }
          

           

           

          thx

          csm_phil

          • 2. Re: change of character color
            Sen.Soft Level 1

            Hi csm_phil,

             

            Thanks and it's working fine, I am not expert in scripting so that I was'nt mention my findings, Could you please help me on changing the color and font size 10pt to 12 pt for for any perticular set of paragraph styles. ex: Text, Text Flush, Bull List etc