🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #18131

Text Frames in AS

#18131
From: Liz Durnall
Date: Fri, 25 Apr 2003 10:15
18 lines
1653 bytes
Hi,
I am creating a script that will place text boxes on the left hand side of the page. These have to be in a line, but the only problem is that if you stop the script and restart it, it doesn't recognise where the last text box was placed. Is there any way I can get the geometric bounds of a text box whilst in a repeat loop?
This is what I have so far, but it says that it can't get the geometric bounds of the text frame:

set theTextFrame to select text frames of myDoc
set theTextSel to selection
set theCount to count theTextSel
repeat with i from 1 to theCount
	set textList to select text frame i of myDoc
	set textListSel to selection
	set myBounds to geometric bounds of item i of myDoc

I need to get the bounds so that I can check the text box is in the list not on the main page as part of the spread.

I hope this all makes sense and someone can help.

Thanks,
Liz
Technical Details
Message-ID: <1de8decd.-1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,71981a4a2b57aadc,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-04-25 03:37:53 PST
From: "Liz Durnall" <elizabeth.durnall@littlewoods.co.uk>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed.icl.net!newsfeed.fjserv.net!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: Text Frames in AS
Message-ID: <1de8decd.-1@WebX.la2eafNXanI>
Date: Fri, 25 Apr 2003 03:15:58 -0700
Lines: 24
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit