Article View: adobe.scripting.indesign
Article #20560Re: Vertical tabulation
From: Olav Kvern
Date: Tue, 25 Jun 2002 18:46
Date: Tue, 25 Jun 2002 18:46
14 lines
1446 bytes
1446 bytes
Mike-- Dave is right again. If you're doing something that changes the number of paragraphs, you've got to iterate backwards. As in: For myCounter = myStory.Paragraphs.Count to 1 Step -1 ... Next Depending on what you're doing, you might also have to change the order of your operations in order to keep your paragraph object references from going out of date. The good news is that paragraph references are much more "solid" in VB than in AppleScript--when I'm wearing my AppleScript hat, I have to worry about dealing with text references which are *always* character x through character y of story z, so simply changing the count of characters can result in invalid text object references. Thanks, Ole
Technical Details
Message-ID:
<ef88d10.29@WebX.aaQKaf7vad4>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!iad-peer.news.verio.net!news.verio.net!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<ef88d10.-1@WebX.aaQKaf7vad4>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,22ddfa026b436769 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-06-25 12: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!supernews.com!iad-peer.news.verio.net!news.verio.net!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Vertical tabulation Message-ID: <ef88d10.29@WebX.aaQKaf7vad4> Date: Tue, 25 Jun 2002 11:46:47 -0700 References: <ef88d10.-1@WebX.aaQKaf7vad4> Lines: 21 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit