🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #9899

Automating the creation of text frames

#9899
From: Damon_Ledwidge
Date: Mon, 17 Jul 2006 00:48
18 lines
1631 bytes
Hi all,

I am trying to create a product catalogue using InDesign CS2. I am on Windows, and using JavaScript. I have created some master pages as a template. Previously, when using the UI, I have copied the text frames from my master pages and used paste-in-place to ensure that my text and images are in the same place on every page. Recently, I have been using "Override all master page items" to override the items on the layers I need to work on (instead of using copy and paste). My problem is that even with the layers I do not want to override locked, my code, which looks like this:

np = doc.pages.add();

//apply A-Master
np.appliedMaster = doc.masterSpreads.item("A-Master");

//insert the frames of the page
var items = np.masterPageItems;
for (i = 0; i < items.length; i++) { 	items[i].override(np); }

overrides the objects on locked layers as well.

How do I only override the items on certain layers? Or should I recreate the frames I need, rather than taking them from the master pages?

Any help would be greatly appreciated
Technical Details
Message-ID: <3bc0ef04.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!syros.belnet.be!news.belnet.be!news.stben.net!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,c6461e642aee2645,start
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Damon_Ledwidge@adobeforums.com
Newsgroups: adobe.scripting.indesign
Subject: Automating the creation of text frames
Message-ID: <3bc0ef04.-1@webcrossing.la2eafNXanI>
Date: Sun, 16 Jul 2006 17:48:47 -0700
Lines: 29
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!syros.belnet.be!news.belnet.be!news.stben.net!webcrossing