08.08.14, 15:24
Hi,
I want to create a palette with buttons and to execute a jsx script when the user press a button.
I tried the following code, but it doesn't work.
There's no "execute()" command... any idea ?
Thanks :)
var script = new File (script.file.parent + "/AIscript.jsx");
var components = {
button: {
type: 'button', label: 'Button',
value:'Click Me',
onClick: function() {
script.open();
}
}
};
var palette = new Palette('Tools', components);