🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #19926

Re: Creating tables on the fly, Windows InDesign

#19926
From: Olav Kvern
Date: Thu, 14 Nov 2002 20:06
11 lines
1357 bytes
GeekGod-- 

FoundText is type Objects, and contains 0+ objects. If FoundText is not empty, then FoundText.Items(1).Tables.Add should convert the found item into a table. 

To get the text frame containing the text, use FoundText.Items(1).ParentTextFrame. (But I'm not sure why you want to get the text frame in this example...enlighten me?) 

Finally, don't use For Each...Next to iterate through InDesign collection objects. We've got a bug that limits the number of returned objects to 256. Instead, use For <counter> = x to y...Next. 

Thanks, 

Ole
Technical Details
Message-ID: <1de68f3a.7@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!newsfeed.gamma.ru!Gamma.RU!newsfeed1.bredband.com!bredband!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de68f3a.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,734b037c90d04195
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-11-14 12:24:20 PST
From: "Olav Kvern" <okvern@adobe.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!newsfeed.gamma.ru!Gamma.RU!newsfeed1.bredband.com!bredband!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 tables on the fly, Windows InDesign
Message-ID: <1de68f3a.7@WebX.la2eafNXanI>
Date: Thu, 14 Nov 2002 12:06:49 -0800
References: <1de68f3a.-1@WebX.la2eafNXanI>
Lines: 17
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit