🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #9245

Re: [VB/JS] [CS2] Moving location of Table in textframe

#9245
From: RuvanFernando
Date: Thu, 07 Sep 2006 11:59
20 lines
1586 bytes
Thanks for your reply Dave.

I can see how that would work, the thing is...
The text comes from a database, so I don't quite know where the exact location of the table is going to be.
ie:
Text from InDesign document:

"Hello to you\r[table]\rAnd some more text"

where [table] is the hex 16 code.

The new replaced text might be:

"Not really really something hello\r[table]\rAnd some corrected text"

My problem is that I would like to insert the text while keeping the table reference, but that seems to fail.

Can you think of a way to do what I want?

I can see, that with your method, I could move the table(s) to one side and then relocate them back after the text has been replaced using the character array. But that's not very efficient.
Technical Details
Message-ID: <3bc18d0b.1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.arcor.de!newsfeed.freenet.de!news.albasani.net!news.buerger.net!open-news-network.org!news.isoc.lu!webcrossing
References: <3bc18d0b.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,a7a2974c5459db7
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: RuvanFernando@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.arcor.de!newsfeed.freenet.de!news.albasani.net!news.buerger.net!open-news-network.org!news.isoc.lu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: [VB/JS] [CS2] Moving location of Table in textframe
Message-ID: <3bc18d0b.1@webcrossing.la2eafNXanI>
Date: Thu, 7 Sep 2006 04:59:50 -0700
References: <3bc18d0b.-1@webcrossing.la2eafNXanI>
Lines: 24
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit