Hello Bob, Please use below code for the same. function show_window () { w = new Window ("dialog", "Text Resize"); w.orientation = "row"; w.alignChildren = "top"; g1 = w.add("group"); p = g1.add("panel"); g2 = p.add("group"); g2.add("statictext", [0,0,100,25], "Current pt size:"); var find = g2.add("edittext {text: '12', characters: 8, justify: 'center'}") find.active = true; g2.add("statictext", undefined, "pt"); g3 = p.add("group"); g3.add("statictext", [0,0,100,25], "Change to:"); var change = g3.add("edittext {text: '11', characters: 8, justify: 'center'}") g3.add("statictext", undefined, "pt"); g4 = w.add("group"); g4.orientation = "column"; g4.add("button", [0,0,85,25], "OK") g4.add("button", [0,0,85,25], "Cancel") if(w.show() == true){ find_change (find.text, change.text); } } function find_change (find, change) { app.findGrepPreferences = app.changeGrepPreferences = null; app.findGrepPreferences.pointSize = find; app.changeGrepPreferences.pointSize = change; doc.changeGrep(true); app.findGrepPreferences = app.changeGrepPreferences = null; } if(app.documents.length>0){ var doc = app.activeDocument; show_window () }else{ alert("Please open your document."); exit(0); } Sumit
... View more