Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 173476

Re: Highlight the fonts applied manually

$
0
0

@Hurix, ignore the previous one and try the below.

 

Hi Hasvi,

 

Try this.

 

var paras = app.activeDocument.stories.everyItem().paragraphs.everyItem().getElements();

try{

     app.activeDocument.colors.add({name:"Red", model:ColorModel.process, colorValue:[15,100,100,0]});

}

catch(e){}

for(var i =0;i<paras.length;i++)

{

       for(var j =0;j<paras[i].words.length;j++)

       {

           if(paras[i].words[j].appliedFont.fontFamily != paras[i].appliedParagraphStyle.appliedFont.fontFamily)

           {

                paras[i].words[j].fillColor = app.activeDocument.swatches.item("Red");

               }

           }

    }

 

Regards,

Chinna


Viewing all articles
Browse latest Browse all 173476

Trending Articles



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