Article View: adobe.scripting.indesign
Article #14938Re: [JS] Add XML tags to all graphics?
From: Olav_Kvern
Date: Fri, 09 Jan 2004 23:32
Date: Fri, 09 Jan 2004 23:32
11 lines
1386 bytes
1386 bytes
Phil-- One quirk for sure--you'd think that the allPageItems property would be an InDesign collection (it's type Objects in VB), but it's a JavaScript array. I just ran into this one today. This means that you can't use the nifty itemByID or itemByRange methods to get at specific objects, as you can with pageItems (which is an InDesign object). The trouble, of course, is that pageItems only gets top-level page items; items within other page items, groups, or text frames are ignored. I expect there's some architectural reason for this--but it's just another special case to keep in mind when converting from VB to JavaScript. Thanks, Ole
Technical Details
Message-ID:
<2ccf3d9d.4@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!news.eunet.no!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!proxad.net!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2ccf3d9d.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,e9c87384022b9c4b X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2004-01-09 15:37:46 PST From: Olav_Kvern@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!news.eunet.no!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!proxad.net!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: [JS] Add XML tags to all graphics? Message-ID: <2ccf3d9d.4@webx.la2eafNXanI> Date: Fri, 9 Jan 2004 15:32:15 -0800 References: <2ccf3d9d.-1@webx.la2eafNXanI> Lines: 18 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit