Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Pass parameters when $.evalScript

Community Beginner ,
Nov 27, 2021 Nov 27, 2021

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!

TOPICS
Expressions , Scripting
183
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 06, 2022 Jan 06, 2022
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines