-
Calling a second script from within my main script.
Hi guys! another question!
I currently have two .jsx files, my main script and another that does an extensive task. My main script creates a UI which has a button that when clicked, it calls the 2nd script and runs it. I found out that I might need to use some of the information generated by my 2nd script to update events that happens in my main script. Is there a way to set/call variables or arrays of my 2nd script from my main script? I really like to void the option of merging the two into one file.
Currently im calling the 2nd script with the following code:
importINFO.onClick = function() {
var file = new File("/VOLpromo/04_SCRIPTS/GUI/GS_Import.jsxbin");
file.open("r");
eval(file.read());
file.close();
}Thanks, any info will be appreciated!!
Happy friday everyone!
Fabio