🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #9797

Re: Automating the creation of text frames

#9797
From: herrmueller
Date: Tue, 18 Jul 2006 02:59
31 lines
1581 bytes
/*----------------------------------------------------------------
If all you textFrames are are threaded.
Select each one and add a label "Copy_Me"
With the script below:
You can select them by label
Cut them from the master.
target the page you are working on then paste in place.

-----------------------------------------------------------------*/
//get a reference to the masterSpread page
ms = app.activeDocument.masterSpreads.item("A-Master");

//reference to text layer
textLayer = app.activeDocument.layers.item("text");

//iterate through textFrames looking for the label "COPY_ME"
for(i = ms.textFrames.length;i>0;i--){
	target = ms.textFrames[i-1]
	if(target.label == "COPY_ME"){
		app.select(target,SelectionOptions.addTo);
	}
}

//cut the selection to the clipboard
app.cut();

//switch to the page you want
app.activeWindow.activePage = app.activeDocument.pages.item(0);

//paste in place
app.pasteInPlace();
Technical Details
Message-ID: <3bc0ef04.4@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!news.ispa.de!news.ecp.fr!news.stben.net!webcrossing
References: <3bc0ef04.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,c6461e642aee2645
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: herrmueller <jmiller@halodesignstudios.com>
Newsgroups: adobe.scripting.indesign
Subject: Re: Automating the creation of text frames
Message-ID: <3bc0ef04.4@webcrossing.la2eafNXanI>
Date: Mon, 17 Jul 2006 19:59:31 -0700
References: <3bc0ef04.-1@webcrossing.la2eafNXanI>
Lines: 22
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!news.ispa.de!news.ecp.fr!news.stben.net!webcrossing