Article View: adobe.scripting.indesign
Article #16706Re: [VB] Can't delete guide
From: Olav Kvern
Date: Mon, 04 Aug 2003 23:45
Date: Mon, 04 Aug 2003 23:45
20 lines
1284 bytes
1284 bytes
Alex-- Ah, if you want to delete all guides with a particular label, try iterating backwards: For myCounter = myPage.Guides.Count to 1 Step -1 If myPage.Guides.Item(myCounter).Label = "myGuide" then myPage.Guides.Item(myCounter).Delete End If Next InDesign refers to guides by their index. Remove a guide, and it's likely that references to the higher-numbered guides will become invalid. Iterating backwards solves this by deleting guides from the *end* of the list, rather than the beginning. Thanks, Ole
Technical Details
Message-ID:
<1dea2e1a.3@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1dea2e1a.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,b99ff8d0ef25617f X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-08-04 17:08:07 PST From: "Olav Kvern" <okvern@adobe.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: [VB] Can't delete guide Message-ID: <1dea2e1a.3@WebX.la2eafNXanI> Date: Mon, 4 Aug 2003 16:45:24 -0700 References: <1dea2e1a.-1@WebX.la2eafNXanI> Lines: 20 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit