🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #18859

Re: use master page

#18859
From: Olav Kvern
Date: Thu, 13 Feb 2003 20:58
56 lines
2983 bytes
Laurent--

re: overridden

This property is read only. It gets set when you override a master page item, which you do using something like the following:



Set myOverriddenPageItem = Document.Pages.Item(1).MasterPageItems.Item(1) 




The other threads talk about a bug in accessing master page items (that iterating through the items copies all of them to the document page), and how to avoid the problem (by finding the page item and its index on the applied master page).

Here is an example:



Set myInDesign = CreateObject("InDesign.Application.2.0") 
Set myDocument = myInDesign.Documents.Add 
Set myMasterSpread = myDocument.MasterSpreads.Item(1) 
If myMasterSpread.Pages.Count > 1 Then 
    Do While myMasterSpread.Pages.Count > 1 
        myMasterSpread.Pages.Item(1).Delete 
    Loop 
End If 
Set myMasterPage = myMasterSpread.Pages.Item(1) 
Rem Create a master page item. 
Set myMasterItem = myMasterPage.Polygons.Add 
myMasterItem.GeometricBounds = Array("6p", "6p", "24p", "24p") 
Rem Create another master item. 
Set myMasterItem = myMasterPage.Polygons.Add 
myMasterItem.GeometricBounds = Array("18p", "18p", "36p", "36p") 
Set myPage = myDocument.Pages.Item(1) 
myPage.AppliedMaster = myMasterSpread 
Rem Override the master page item. 
Set myOverriddenPageItem = myPage.MasterPageItems.Item(1) 
Rem Look at the document page. You'll see that the first master page item is overridden. 
Rem If you look at the object using the WatchWindow or Locals window, you'll see that 
Rem its overridden property has changed from false to true. 




To find out how to search for and override a specific master page item, search the forum for "masterpageitem" and you'll find more example scripts.

re: dictionaries

I don't know the list of available language dictionaries for InDesign, but I'm sure you can find out by looking at the product information on InDesign at adobe.com and at WinSoft's web site (for CE and ME supported languages). That's why I didn't answer that question, which really didn't have anything to do with scripting.

I'm sorry if the lack of a response on that question upsets you, but I think I've responded fairly well to your scripting-related questions.

Thanks,

Ole
Technical Details
Message-ID: <1de7b559.4@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!newsfeed.gamma.ru!Gamma.RU!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <3E4113E8.1060604@comidoc.fr>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,ff1d5253cfa97279
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-02-13 13:10:02 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!newsfeed.gamma.ru!Gamma.RU!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: use master page
Message-ID: <1de7b559.4@WebX.la2eafNXanI>
Date: Thu, 13 Feb 2003 12:58:01 -0800
References: <3E4113E8.1060604@comidoc.fr>
Lines: 62
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit