🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16799

Re: [VB] Can't delete guide

#16799
From: Olav Kvern
Date: Mon, 04 Aug 2003 20:08
21 lines
1280 bytes
Alex--

Hold on--I should have tested further! The reason that ".Item(1)" works is that I was getting *all* of the guides on the page. There was only 1.<g>

The "Item("name")" reference works fine for page items, but not for guides. So, to find a guide, you'll have to iterate:



For myCounter = 1 to myPage.Guides.Count 
If myPage.Guides.Item(myCounter).Label = "myGuide" then 
myPage.Guides.Item(myCounter).Delete 
Exit For 
End If 
Next 




Thanks,

Ole
Technical Details
Message-ID: <1dea2e1a.1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!diablo.voicenet.com!prodigy.com!in.100proofnews.com!in.100proofnews.com!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <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 13:37:53 PST
From: "Olav Kvern" <okvern@adobe.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!diablo.voicenet.com!prodigy.com!in.100proofnews.com!in.100proofnews.com!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: [VB] Can't delete guide
Message-ID: <1dea2e1a.1@WebX.la2eafNXanI>
Date: Mon, 4 Aug 2003 13:08:46 -0700
References: <1dea2e1a.-1@WebX.la2eafNXanI>
Lines: 20
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit