🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #17350

Re: How to know if a page is verso or recto?

#17350
From: Olav Kvern
Date: Thu, 12 Jun 2003 21:20
33 lines
1698 bytes
Johannes, Max--

Don't iterate through MasterPageItems--that will copy each master page item to your document page (probably not what you want to do). Max is on the right track, but you won't find the master page item you're looking for in the AllPageItems collection of the document page (unless the master page item has already been overridden).

Next, you can find a master page item by its label using the following approach:



Rem Given a page "myPage" 
Set myMasterItem = myPage.AppliedMaster.PageItems("verso") 
If TypeName(myMaster) = "Nothing" Then 
Rem Did not find the master item, page is probably recto 
Else 
Rem Found the item, page is verso 
End if 




Might I suggest, however that you store the string in the label property of the master page itself? That way, you don't have to worry about an inivisible object messing things up.



Rem Given a page "myPage" 
If myPage.AppliedMaster.Label = "verso" Then 
... 




Thanks,

Ole
Technical Details
Message-ID: <1de944a9.9@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de944a9.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,773d8af0ffb694fa
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-06-12 14:38:00 PST
From: "Olav Kvern" <okvern@adobe.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: How to know if a page is verso or recto?
Message-ID: <1de944a9.9@WebX.la2eafNXanI>
Date: Thu, 12 Jun 2003 14:20:55 -0700
References: <1de944a9.-1@WebX.la2eafNXanI>
Lines: 32
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit