Article View: adobe.scripting.indesign
Article #20855Re: list all overset text frames??
From: Shane Stanley
Date: Sun, 02 Jun 2002 11:16
Date: Sun, 02 Jun 2002 11:16
26 lines
1865 bytes
1865 bytes
Peter, Richard,
That's what happens when you don't test on real documents:-( The error is
happening, I suspect, because you have one or more empty text frames in your
documents, and hence a problem with character -1 of an empty story. Try
changing line 4 to:
set theFrames to parent text frame of character -1 of (stories whose length
> 0)
in article ef8e037.2@WebX.aaQKaf7vad4, peter long wrote:
> Would the following make it simpler? (It also doesn't work!)
>
> set theFrames to every story whose parent text frame of character -1 is {}
It would if it worked, I guess. But even with no empty frames, I don't see
how it will. OTOH, this was off the top of my head; there may well be a
better/quicker way to do it than my script (which actually started out
trying another way, but had to be reworked).
And if Peter B. or Alan are following, it looks to me like we could do with
an "index" or "document offset" property for spreads.
--
Shane Stanley, sstanley@myriad-com.com.au
Technical Details
Message-ID:
<B9203B96.31BE0%sstanley@myriad-com.com.au>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!supernews.com!telocity-west!TELOCITY!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<ef8e037.-1@WebX.aaQKaf7vad4> <ef8e037.2@WebX.aaQKaf7vad4>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,eca6aaad1384c6e8 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-06-02 04:37:25 PST From: Shane Stanley <sstanley@myriad-com.com.au> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!supernews.com!telocity-west!TELOCITY!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: list all overset text frames?? Message-ID: <B9203B96.31BE0%sstanley@myriad-com.com.au> Date: Sun, 2 Jun 2002 04:16:07 -0700 References: <ef8e037.-1@WebX.aaQKaf7vad4> <ef8e037.2@WebX.aaQKaf7vad4> Lines: 33 User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.0.3 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit