Skip to main content
Known Participant
November 27, 2021
Question

Pass parameters when $.evalScript

  • November 27, 2021
  • 1 reply
  • 224 views

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!

This topic has been closed for replies.

1 reply

Justin Taylor-Hyper Brew
Community Expert
Community Expert
January 6, 2022

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.