var dia = new Window("dialog", "カンマをあげ", [0,0,250,110]); dia.pane1 = dia.add("panel",[5,10,240,60],"あげるポイント数"); dia.tex1 = dia.pane1.add("edittext",[10,10,100,30]); dia.add("statictext",[110,30,240,50],"pt"); dia.bot1 = dia.add("button",[10,70,100,100],"実行", { name:"ok"}); dia.tex1.text=1.5; dia.center(); dia.show(); selt=activeDocument.selection; for (i=0; i<selt.length; i++) { n=selt[i].characters.length; for (j=0; j<n; j++) { c = selt[i].characters[j].contents; if(c==",")selt[i].characters[j].baselineShift=dia.tex1.text; } }
コメント