Article View: adobe.scripting.indesign
Article #15674Re: Moving formatted text
From: Dave_Saunders
Date: Thu, 20 Nov 2003 14:58
Date: Thu, 20 Nov 2003 14:58
16 lines
1338 bytes
1338 bytes
Success:
myStory = app.selection[0].parentStory;
myLim = myStory.paragraphs.length;
myTargStory = app.documents[0].textFrames.item('Target').parentStory;
myTargTable = myTargStory.textFrames[0].tables[0];
for (i=0; i<myLim; i++) {
myText = myStory.paragraphs.item(i).characters.itemByRange(2,-2);
myText.move(LocationOptions.atEnd, myTargTable.rows.item(i).cells.item(i).texts.item(i));
OK, now I think I've learned enough to get serious about tackling this job.
I hope this meander through my thinking processes is helpful to people trying to come to grips with scripting.
Dave
Technical Details
Message-ID:
<2cce7d8f.9@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<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 07:08:03 PST From: Dave_Saunders@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: Moving formatted text Message-ID: <2cce7d8f.9@webx.la2eafNXanI> Date: Thu, 20 Nov 2003 06:58:09 -0800 References: <2cce7d8f.-1@webx.la2eafNXanI> Lines: 19 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit