Question
$setenv and $getenv problem
Hi, I'm tryin to set and get an environment var in InDesign CS3 (mac) using javascript.
I made a script (to InDesign) to set a var:
$.setenv("myVar", "my value");
And another one (also to InDesign) to get the var:
alert($.getenv("myVar"));
While both are running I get the var value in the alert, but when I restart InDesign and launch the second script it doesn't works.
What's the problem with this?
I thought environment vars were supposed to live even if I close the application.
Am I wrong?
Thanks anticipately guys!
I made a script (to InDesign) to set a var:
$.setenv("myVar", "my value");
And another one (also to InDesign) to get the var:
alert($.getenv("myVar"));
While both are running I get the var value in the alert, but when I restart InDesign and launch the second script it doesn't works.
What's the problem with this?
I thought environment vars were supposed to live even if I close the application.
Am I wrong?
Thanks anticipately guys!
