I am having trouble using global variables. I have 2 scripts. In Script1, I declare and set the variable using:
global testVar put "testing" into testVar Script2
Then in Script2, I use the variable:
(also tried “TypeText testVar”)
…but the literal string of “testVar” is entered.
If I move the put command that sets the value (put “testing” into testVar) into Script2, it still doesn’t work.
If I use (TypeText testVar) then it works. But then it’s not a global variable.
What am I missing here to be able to declare and set a global variable in one script and then use it in another?