🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1962

Re: $setenv and $getenv problem

#1962
From: Kasyan Servetsky
Date: Thu, 22 Jan 2009 08:18
18 lines
1077 bytes
Hi cinematomico,

I use application’s insertLabel and extractLabel methods to store variables between ID sessions.
For example:

// store variable 
var myVariable =  "my value"; 
app.insertLabel("myVar", myVariable);

// restore variable 
if (app.extractLabel("myVar") != ""){//if myVar has been set some value 
var myVariable = app.extractLabel("myVar"); 
} 
else {//if not set some default value 
var myVariable = "some default value"; 
}

Kasyan
Technical Details
Message-ID: <59b79268.6@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing
References: <59b79268.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,c0d8d7dabf70f9ff
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Kasyan Servetsky" <askoldich@yahoo.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: $setenv and $getenv problem
Message-ID: <59b79268.6@webcrossing.la2eafNXanI>
Date: Thu, 22 Jan 2009 00:18:23 -0800
References: <59b79268.-1@webcrossing.la2eafNXanI>
Lines: 17
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit