🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1440

Re: Indesign para2txtframe script problem

#1440
From: Dave_Saunders
Date: Sun, 08 Feb 2009 20:23
11 lines
996 bytes
You can't move a JavaScript string. You need references to the paragraphs. I think I slightly screwed up above.

Indeed, you don't seem to be using the contents at all, so:

var myParas = myDoc.stories[0].paragraphs;
for (var j = 0; myParas.length > j; j++) {
myTF = myDoc.textFrames.add({label: 'temp' + j}); // String(j) not needed
myParas[0].move(LocationOptions.after.myTF.parentStory;
}

Dave
Technical Details
Message-ID: <59b7d1f3.2@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
References: <59b7d1f3.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,da3e0bfe5178684b
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Dave_Saunders@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: Indesign para2txtframe script problem
Message-ID: <59b7d1f3.2@webcrossing.la2eafNXanI>
Date: Sun, 8 Feb 2009 12:23:40 -0800
References: <59b7d1f3.-1@webcrossing.la2eafNXanI>
Lines: 13
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit