1 Reply Latest reply on May 26, 2016 6:06 AM by tpk1982

    Problem in the heading

    Mohammad Modassir Level 1

      Hi,

      Throughout the whole document — there is used a bullet with each heading. I want to use a script which can remove all these bullets and let the heading stand alone. And then I want to change the font and size of all these fonts.

       

      How would such script look like, if I want something in the following format?:

       

       

      grep{findWhat:"  +"}{changeTo:" "}{includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}Find all double spaces and replace with single spaces.

       

      Would be very glad for your help.

       

      Regards Modassir

        • 1. Re: Problem in the heading
          tpk1982 Level 4

          use this. copy your bullet and space(if any) and paste in the place of "xx" in find what like below:

           

          Screen Shot 2016-05-26 at 6.31.08 PM.png

           

          grep    {findWhat:"xx",appliedParagraphStyle:app.activeDocument.paragraphStyles.item("Your paragraph style name")}        {changeTo:""}            {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}     Find all double spaces and replace with single spaces.