/* Resize selected text Version: 1.0 Script by Thomas Silkjær http://indesigning.net/ */ 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!");