🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1879

$setenv and $getenv problem

#1879
From: cinematomico
Date: Wed, 21 Jan 2009 12:40
14 lines
1069 bytes
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!
Technical Details
Message-ID: <59b79268.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,c0d8d7dabf70f9ff,start
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: cinematomico@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: $setenv and $getenv problem
Message-ID: <59b79268.-1@webcrossing.la2eafNXanI>
Date: Wed, 21 Jan 2009 04:40:01 -0800
Lines: 17
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit