Passing Variables to a Script?

Is this possible yet?

-Eric

AFAIK, sadly no.

However, since 6.2, you can :parse a script’s source into a variable, or better yet - write it in a “do”, and more importantly - once you do that, you can invoke the variable and pass variables at that point.

e.g.
#approach 1
:global myScript [:parse [/system script get “myScript” source]];
$myScript param1=“val1” param2=2;

#approach 2
:global myScript do={
:put $param1;
:put $param2;
};
$myScript param1=“val1” param2=2;

Yeah. That’s what I figured. Thanks

Sent from my SCH-I545 using Tapatalk