🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #17973

Re: Question about repeat [AS]

#17973
From: Olav Kvern
Date: Thu, 01 May 2003 15:06
18 lines
1003 bytes
Richard--

You can also simply iterate backwards:



   repeat with j from (count paragraphs) to 1 by -1 
--loop contents 
    end repeat 




This will also preserve object references (if you need to use them--as Shane points out, you might not need to).

Thanks,

Ole
Technical Details
Message-ID: <1de8f324.4@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de8f324.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,f58fa0f66d7887b5
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-05-01 08:08:30 PST
From: "Olav Kvern" <okvern@adobe.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Question about repeat [AS]
Message-ID: <1de8f324.4@WebX.la2eafNXanI>
Date: Thu, 1 May 2003 08:06:08 -0700
References: <1de8f324.-1@WebX.la2eafNXanI>
Lines: 15
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit