🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #15672

Re: Moving formatted text

#15672
From: Dave_Saunders
Date: Thu, 20 Nov 2003 13:08
24 lines
1980 bytes
I hope nobody minds my "thinking out loud" here.

Your example, Ole, is very helpful.

The only reason I'm thinking of using a second document to make the table is because I am fearful that a document that already has 2538 stories in it might be overwhelmed if I also add a table that has 20 columns and 480 rows, with just about all cells populated.

But maybe I should throw caution to the wind and just go ahead and build the thing on a new last page. I can always insert logic to use a second document if my fears materialize into real problems. The thing is: while the data for most rows is contained on a single page, for some there are two pages involved and in another case three.

Hmm. Can you move three pages at once so that the text frames stay threaded? I'm not sure.

I guess the first thing I need to do is work out the syntax for moving some text from a paragraph to a cell in a table. OK, I'll try a test where the insertion point is in the paragraph and there's only one table.

Hmm. What's wrong with this:

myTargStory = app.documents[0].stories.item('Target');
myTargTable = myTargStory.tables[0];

I only split it into two lines because I couldn't get a single line to work.

Hmm. Even myTargStory.tables doesn't work; results in "Object is invalid".

Perhaps one of Ole's examples uses a table. Off to check.

Dave
Technical Details
Message-ID: <2cce7d8f.5@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2cce7d8f.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,2aa45b5334d34582
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-11-20 05:37:53 PST
From: Dave_Saunders@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: Moving formatted text
Message-ID: <2cce7d8f.5@webx.la2eafNXanI>
Date: Thu, 20 Nov 2003 05:08:47 -0800
References: <2cce7d8f.-1@webx.la2eafNXanI>
Lines: 36
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit