🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1439

Re: Indesign para2txtframe script problem

#1439
From: David_Milson
Date: Sun, 08 Feb 2009 20:01
28 lines
1384 bytes
Dear Dave,

Many thanks for your quick reply. As you noticed, yes, I am a beginner to Java, after many hours of repetitive tasks.

I do believe you understand what I'm trying to do, so here goes:

I tried your suggestions, and additionally changed the last myParagraphs to myContents as above, but now get this error on the last line:
myContents[0].move is not a function.

Here is the script now:
function paragraphs2textframes()
{

var myDoc = app.activeDocument;
var myContents = myDoc.stories[0].paragraphs.everyItem().contents;
for( var j = 0; myContents.length>j; j++ )
{

myTframe = myDoc.textFrames.add({ label : 'temp' + String(j) } );

myContents[0].move( LocationOptions.after, myTframe.parentStory);
}
}

paragraphs2textframes()

Thanks for your time.
David
Technical Details
Message-ID: <59b7d1f3.1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.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: David_Milson@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: Indesign para2txtframe script problem
Message-ID: <59b7d1f3.1@webcrossing.la2eafNXanI>
Date: Sun, 8 Feb 2009 12:01:28 -0800
References: <59b7d1f3.-1@webcrossing.la2eafNXanI>
Lines: 30
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit