🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #15069

Re: JS: Terminology Question

#15069
From: Olav_Kvern
Date: Tue, 16 Dec 2003 04:14
9 lines
1175 bytes
Dave--

This is why I've been telling people to use the reference [x] to refer to an item in an array and .item(x) to refer to an item in a collection. It's safer and less confusing. When InDesign exposes a plural object (such as paragraphStyles), it's a collection; when you build a list using JavaScript, it's an array.

In general, you can use the [x] reference for InDesign collections, but that seems to be where it stops--if you actually need to get something from one of the members of the collection, use the .item(x) method.

Thanks,

Ole
Technical Details
Message-ID: <2ccef1cd.0@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccef1cd.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,69e60e8259feb646
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-12-15 20:38:09 PST
From: Olav_Kvern@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: JS: Terminology Question
Message-ID: <2ccef1cd.0@webx.la2eafNXanI>
Date: Mon, 15 Dec 2003 20:14:02 -0800
References: <2ccef1cd.-1@webx.la2eafNXanI>
Lines: 15
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit