🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #18044

Re: Creating text on a new page

#18044
From: John Darnell
Date: Fri, 25 Apr 2003 15:10
32 lines
1546 bytes
Ole:

I changed the handler to look like this:

on MakeTextBox(BoxNumber, TopCoord, LeftCoord, RightCoord, BottomCoord)
	local PageCount

	tell application "InDesign 2.0.1"

		set CurDoc to active document
		tell CurDoc

			set PageCount to count of pages

			tell page PageCount

				set my CurrentFrame to make text frame
				tell my CurrentFrame to move by {1, 1}
				set properties of my CurrentFrame to {geometric bounds:{TopCoord, LeftCoord, BottomCoord, RightCoord}, label:BoxNumber}

			end tell

		end tell
	end tell

end MakeTextBox

I am still getting two text frames on page 1 of the spread instead of one text frame on each page.

FYI, CurrentFrame is a global used later to actually fill the box with text.

Please advise.
Technical Details
Message-ID: <1de8dc77.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-08!supernews.com!newsfeeds.sol.net!skynet.be!skynet.be!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de8dc77.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,5fb9b80ecb9e484c
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-04-25 08:37:59 PST
From: "John Darnell" <John.Darnell@Walsworth.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!newsfeeds.sol.net!skynet.be!skynet.be!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Creating text on a new page
Message-ID: <1de8dc77.1@WebX.la2eafNXanI>
Date: Fri, 25 Apr 2003 08:10:58 -0700
References: <1de8dc77.-1@WebX.la2eafNXanI>
Lines: 35
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit