Copy link to clipboard
Copied
Hi, I have a script that opens another script,
and i want it to pass parameters to it, and read them on the other script of course.
How can I do that?
That's the piece of code I have right now:
var scriptPath = File("*SCRIPT LOCATION*");
$.evalFile(scriptPath);
Thanks!
Copy link to clipboard
Copied
Not possible with evalFile(), it only takes arguments of scriptPath and timeout. You'd probably want to add your own custom data object to $ and then read that data in the new file you're opening instead, or use env vars.