🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8356

Re: How Do I Order/Sort Page Items?

#8356
From: Dave_Saunders
Date: Thu, 19 Oct 2006 13:07
11 lines
1283 bytes
I would use geometry only as a last resort in a case like this. As Robin indicates, there are other ways to sort out which is what.

PageItems are ordered front-to-back in the pageItems collection, so, no, InDesign doesn't count them in the order they're added if you have them on different layers or if you have used send to front/back, etc.

But you can get at page items from a variety of perspectives. For example, you can use the layer object collection. In JS, unfortunately, you can't do:

myDoc.layers.item("Graphics").pageItems.itemWhose(parent == myPage);

but wouldn't that be nice? You can do that in AppleScript, I believe.

Dave
Technical Details
Message-ID: <3bc1493b.4@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.musoftware.de!news.albasani.net!news.isoc.lu!news.stben.net!webcrossing
References: <3bc1493b.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,a22bdce5ccaafd9f
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Dave_Saunders@adobeforums.com
Newsgroups: adobe.scripting.indesign
Subject: Re: How Do I Order/Sort Page Items?
Message-ID: <3bc1493b.4@webcrossing.la2eafNXanI>
Date: Thu, 19 Oct 2006 06:07:12 -0700
References: <3bc1493b.-1@webcrossing.la2eafNXanI>
Lines: 16
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.musoftware.de!news.albasani.net!news.isoc.lu!news.stben.net!webcrossing