#target photoshop app.bringToFront(); function main(){ var dlg = "dialog{text:'Script Interface',bounds:[100,100,500,230],"+ "panel0:Panel{bounds:[10,10,390,120] , text:'' ,properties:{borderStyle:'etched',su1PanelCoordinates:true},"+ "statictext0:StaticText{bounds:[30,10,160,30] , text:'Run Action X Times..' ,properties:{scrolling:undefined,multiline:undefined}},"+ "Xtimes:EditText{bounds:[200,10,261,30] , text:'1' ,properties:{multiline:false,noecho:false,readonly:false}},"+ "ActionSet:DropDownList{bounds:[10,50,180,70]},"+ "ActionName:DropDownList{bounds:[200,50,370,70]},"+ "button0:Button{bounds:[40,80,140,100] , text:'Ok' },"+ "button1:Button{bounds:[240,80,340,100] , text:'Cancel' }}}"; var win = new Window(dlg,"Action Runner"); win.center(); var actionSets = new Array(); actionSets = getActionSets(); for (var i=0,len=actionSets.length;i