Article View: adobe.scripting.indesign
Article #9661Re: Exactly One Paragraph per TextFrame
From: Peter_Kahrel
Date: Thu, 20 Jul 2006 07:24
Date: Thu, 20 Jul 2006 07:24
12 lines
930 bytes
930 bytes
First get a reference to the story's text frames:
var myTF = myStory.textFrames
then check each to see if it contains just one whole paragraph:
for( var i = 0; i < myTF.length; i++ )
if( myTF[i].paragraphs.length > 1 )
{
// myTF[i] has more than one par, do sth
Peter
Technical Details
Message-ID:
<3bc0f929.0@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.musoftware.de!news.albasani.net!news.ecp.fr!news.stben.net!webcrossingReferences:
<3bc0f929.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,2c4c6eed7c1f4a81 X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Peter_Kahrel@adobeforums.com Newsgroups: adobe.scripting.indesign Subject: Re: Exactly One Paragraph per TextFrame Message-ID: <3bc0f929.0@webcrossing.la2eafNXanI> Date: Thu, 20 Jul 2006 00:24:45 -0700 References: <3bc0f929.-1@webcrossing.la2eafNXanI> Lines: 13 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.musoftware.de!news.albasani.net!news.ecp.fr!news.stben.net!webcrossing