Show amout of characters or Text frames under certain PT size say 4PT?
Basically I am looking to find any text frame that the font is under 4PT.
Basically I am looking to find any text frame that the font is under 4PT.
Hi.. Try this.. For now i just used Black color.. if you need use any other special color you have
var mycharacter = app.activeDocument.stories.everyItem().characters.everyItem().getElements();
var myarray=[]
for (a=0; a<mycharacter.length; a++)
{
if (mycharacter.pointSize < 4)
{
myarray.push(mycharacter.length)
//~ mycharacter.parentTextFrames[0].fillColor="Black"; //Turn this if you need to fill the texrframes with color
mycharacter.fillColor="Black";
}
}
alert("Total characters below 4 point is:\n"+myarray.length+"\n\n"+"And now it changed to Black color")
HTH
K
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.