Article View: adobe.scripting.indesign
Article #15067JS: Terminology Question
From: Dave_Saunders
Date: Tue, 16 Dec 2003 03:25
Date: Tue, 16 Dec 2003 03:25
11 lines
1628 bytes
1628 bytes
It has taken me a while to realize that a reference to a collection of objects is not the same as an array. In many ways, it looks, acts and quacks like an array but array methods won't work with one. Today, I wanted to do this: myTarget = app.documents[0].paragraphStyles.shift(); in order to be able to get what I thought of as an array of references to all the paragraph styles except No paragraph style. But it doesn't work because app.documents[0].paragraphStyles is not an array, it's an object; a plural object. My question is: what is the correct terminology? plural object is a hell of a circumlocution, but it might be strictly correct. It even acts like a plural object when there's only one of them. I've been wanting to use the word "collection" to describe one of these, but that might be a reserved word meaning something else. "Collection" doesn't appear in the index of the JavaScript Reference at DevEdge, so maybe it is a good word. What do others call these array-like things that don't take array methods? Dave
Technical Details
Message-ID:
<2ccef1cd.-1@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webxShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,69e60e8259feb646,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-12-15 19:37:59 PST From: Dave_Saunders@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: JS: Terminology Question Message-ID: <2ccef1cd.-1@webx.la2eafNXanI> Date: Mon, 15 Dec 2003 19:25:30 -0800 Lines: 23 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit