Question
start script from another script
Hello, everybody!
I have 2 scripts: first.jsx & second.jsx
In UI in first.jsx I have a Button. If I press to this button, I need to start second.jsx.
How can I start second.jsx? Both scripts are in same folder.
first.jsx:
var dlg = new Window("dialog", "Try to start second.jsx");
dlg.testButton = dlg.add("Button", undefined, "start second.jsx");
dlg.testButton.onClick = function(){
//missing code
}
dlg.show()
second.jsx:
alert("second.jsx successfully started")