🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1954

Re: $setenv and $getenv problem

#1954
From: xbytor
Date: Wed, 21 Jan 2009 22:11
18 lines
1394 bytes
> What's the advantage over just using simple global 
> variables?

I would only consider them useful for setting up env vars for other applications 
that you maybe invoking from ID/JS.

Beyond that, $.getenv is useful for things like $HOME, etc...

$.setenv wouldn't really serve any other purpose except when:
a) you have some code that already looks to $.getenv for info.
    and
b) that info isn't in your env vars (for some reason) so $.setenv can insert 
some defaults

That's kind of convoluted and not what I would consider good practice when 
scripting Adobe apps.

-X
Technical Details
Message-ID: <39322D22803D29BDFC57368F87BFBAF4@in.webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossing
References: <59b79268.-1@webcrossing.la2eafNXanI> <7EC05F0BF23EB7214C50E1BD883FAC52@in.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: xbytor@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: $setenv and $getenv problem
Message-ID: <39322D22803D29BDFC57368F87BFBAF4@in.webcrossing.la2eafNXanI>
Date: Wed, 21 Jan 2009 14:11:58 -0800
References: <59b79268.-1@webcrossing.la2eafNXanI> <7EC05F0BF23EB7214C50E1BD883FAC52@in.webcrossing.la2eafNXanI>
Lines: 21
User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209)
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit