Article View: adobe.scripting.indesign
Article #484Re: Array sort with XML Attributes
From: Dave_Saunders
Date: Mon, 23 Mar 2009 11:54
Date: Mon, 23 Mar 2009 11:54
9 lines
811 bytes
811 bytes
You'll need to get the stories references into an array: myStories = myDocument.stories.everyItem().getElements(); and the sort them based on the page numbers of the first text container. So, yes it is possible. Dave
Technical Details
Message-ID:
<59b85dd0.2@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b85dd0.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,1a40e30e5d3787a9 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Dave_Saunders@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: Array sort with XML Attributes Message-ID: <59b85dd0.2@webcrossing.la2eafNXanI> Date: Mon, 23 Mar 2009 04:54:03 -0700 References: <59b85dd0.-1@webcrossing.la2eafNXanI> Lines: 10 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit