🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1294

Re: TextFrames and Stories - what am I doing wrong?

#1294
From: Dave_Saunders
Date: Sat, 14 Feb 2009 16:55
11 lines
1276 bytes
Probably because you're using CS3 or CS4. In these versions of InDesign, the Story.textFrames collection is the collection of text frames that are inline or anchored to the story.

What you are interested in is the textContainers property (which is an array, by the way, so be careful about addressing the last member; you have to use: myStory.textContainers[myStory.textContainers.length - 1]).

Actually, you can use:

myStory.textContainers[0].endTextFrame;

which is a clearly anachronistic name for what should now be called endTextContainer. This is less typing, but takes twice as long because it involves two calls to the object model.

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

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,e03a19f50cae18e3
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Dave_Saunders@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: TextFrames and Stories - what am I doing wrong?
Message-ID: <59b7ed12.0@webcrossing.la2eafNXanI>
Date: Sat, 14 Feb 2009 08:55:10 -0800
References: <59b7ed12.-1@webcrossing.la2eafNXanI>
Lines: 17
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit