🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1049

Re: Arguments in called scripts

#1049
From: Harbs
Date: Sun, 22 Feb 2009 11:55
19 lines
1386 bytes
> There are lots of ways already for scripts to communicate with each other, so passing arguments in this restrictive fashion isn't worth it.
>   

Agreed.

My personal favorite is using APID dataStores (which of course assumes 
APID is installed). It's a solution which works in all versions of 
InDesign back to CS, and works across different scripting engines. 
DataStores can accept any kind of data -- including object references. 
The only limitation there is you can't pass custom js objects.

Using global variables in private scripting engines is another good 
method. With using global variables if(typeof variable == "undefined") 
is very useful...

-- 
Harbs
http://www.in-tools.com
Technical Details
Message-ID: <60C02A02F8CE009CB5ED46334CC6C782@in.webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
References: <59b7fbaf.-1@webcrossing.la2eafNXanI> <59b7fbaf.4@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,6bc17fce89208641
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Harbs
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: Arguments in called scripts
Message-ID: <60C02A02F8CE009CB5ED46334CC6C782@in.webcrossing.la2eafNXanI>
Date: Sun, 22 Feb 2009 03:55:02 -0800
References: <59b7fbaf.-1@webcrossing.la2eafNXanI> <59b7fbaf.4@webcrossing.la2eafNXanI>
Lines: 21
User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421)
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit