🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #18071

Re: Text Frames in AS

#18071
From: Olivier Berquin
Date: Mon, 28 Apr 2003 12:43
39 lines
1441 bytes
Jay,
if you use "set myBounds to {}", that wants to say (for me),
that you want to create a list. In this case, you can use:



 
	set end of myBounds to (geometric bounds of text frame i of page j) 






Liz,
If you want to know the bounds of the last text frame of your document, maybe you can use something like this:

 
tell application "InDesign 2.0.2" 
	tell active document 
		tell last page 
			tell last text frame 
				set myBounds to geometric bounds of it 
			end tell 
		end tell 
	end tell 
end tell 




Another idea: you can *write*, in a text file, a log of all your stuff.
Read this file for your last command.


HTH


Olivier
Technical Details
Message-ID: <1de8decd.3@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de8decd.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,71981a4a2b57aadc
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-04-28 06:08:05 PST
From: "Olivier Berquin" <olb@microscript.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Text Frames in AS
Message-ID: <1de8decd.3@WebX.la2eafNXanI>
Date: Mon, 28 Apr 2003 05:43:53 -0700
References: <1de8decd.-1@WebX.la2eafNXanI>
Lines: 29
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit