Hi everyone
I got this script,
function: change font size in selection
but I want to change the function to selection text frames
I mean: change the font size in all the selected text frames.
thanks
//---------------------------------------------------------------------------------------- -----------------------
var the_document = app.documents.item(0);
var the_selection = app.selection[0];
var the_dialog = app.dialogs.add({name:"Resize selected text"});
with(the_dialog.dialogColumns.add()){
with(dialogRows.add()){
staticTexts.add({staticLabel:"Resize the selected text by"});
var increase_by = measurementEditboxes.add({editUnits:MeasurementUnits.POINTS, editValue:0});
}
}
the_dialog.show();
counter = 0;
do {
var current_character = the_selection.characters.item(counter);
current_character.pointSize = current_character.pointSize + increase_by.editValue;
counter++;
} while (counter < the_selection.characters.length);
alert("Done!");
//---------------------------------------------------------------------------------------- ------------------------
VK