using a modal dialog with the OK button you will not need the onChange event. var w = new Window('dialog', "test") var dL = w.add ("dropdownlist", undefined, ["Document", "All Documents", "Selection"]); w.add('button', undefined, "OK"); dL.selection = 0; if(w.show() != 1){ exit(); }else{ var curSelection1 = dL.selection.index; switch (curSelection1){ case 0: script40(app.documents.item(0)); break; case 1: script40(app.documents.everyItem()); break; case 2: script40(app.selection[0]); break; } }function script40(myDL){ app.findGrepPreferences = null; app.findGrepPreferences.findWhat = "found"; app.changeGrepPreferences.changeTo = "changed"; myDL.changeGrep(); }
...その他を表示