Copy link to clipboard
Copied
Hi,
it is possible using script to select all other curent document text frames having the same font size?
scipt →
Solved for me, I found a script 🙂
script source
if ((app.activeDocument.selection.length == 1) && (app.activeDocument.selection[0].typename == "TextFrame")) {
var selectedText = app.activeDocument.selection[0];
var textObjects = app.activeDocument.textFrames
var numTextObj = textObjects.length;
for ( j = 0 ; j < numTextObj; j++ ) {
if(textObjects[j].te
...
there's a native solution (also in the same uservoice you posted)
Select->Same->Font Size Menu
Copy link to clipboard
Copied
Solved for me, I found a script 🙂
script source
if ((app.activeDocument.selection.length == 1) && (app.activeDocument.selection[0].typename == "TextFrame")) {
var selectedText = app.activeDocument.selection[0];
var textObjects = app.activeDocument.textFrames
var numTextObj = textObjects.length;
for ( j = 0 ; j < numTextObj; j++ ) {
if(textObjects[j].textRange.length > 0 && textObjects[j].editable==true && !textObjects[j].locked && !textObjects[j].hidden ){
if ( selectedText.textRange.characterAttributes.size == textObjects[j].textRange.characterAttributes.size ){
selCValue = selectedText.textRange.characterAttributes.textFont.name ;
txtCValue = textObjects[j].textRange.characterAttributes.textFont.name ;
if (selCValue == txtCValue ) {
textObjects[j].selected = true;
}
}
}
}
} else {
alert ("You must only have a single text object selected");
}
Copy link to clipboard
Copied
Well done! 🙂
Copy link to clipboard
Copied
there's a native solution (also in the same uservoice you posted)
Select->Same->Font Size Menu