How to create a button to run a script?
Hi,
I would like to create a button that stays on the screen and I can use " app.doScript()" run an action.
I would appreciate any help.
So far I found this
var dlg = new Window('dialog','Align Center');
dlg.btn = dlg.add('button',undefined,'Align Center');
dlg.btn.onClick = function(){app.doScript('AlignCenter','Align')}
dlg.show();
the problem I have with this is, after I run the script then I can't click on any other object to run the script again and I have to close it and reopen it.
Thanks
Alex
