🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.scripting.indesign
6 messages
6 total messages Started by Fred_Goldman Tue, 10 Feb 2009 01:19
Index of textFrame in Story
#1333
Author: Fred_Goldman
Date: Tue, 10 Feb 2009 01:19
1 lines
634 bytes
Given myTF is a textFrame, how would I find out the index of that text frame relative to the parentStory?
Re: Index of textFrame in Story
#1336
Author: Dave_Saunders
Date: Tue, 10 Feb 2009 01:56
7 lines
884 bytes
There's a property called, wait for it, wait for it ... textFrameIndex

Ta-da!

I went looking for it just the other day. I thought it would have been called storyOffset or something like that, but I was reduced to stepping down the list of textFrame properties until I found it.

Dave
Re: Index of textFrame in Story
#1337
Author: Fred_Goldman
Date: Tue, 10 Feb 2009 02:03
4 lines
825 bytes
Perfect!

I never thought it would be that simple or I would've looked through the 
properties myself, thanks Dave!
c
#1343
Author: Harbs
Date: Tue, 10 Feb 2009 07:34
15 lines
1199 bytes
Dave_Saunders@adobeforums.com wrote:
> There's a property called, wait for it, wait for it ... textFrameIndex
>   

Be very, very careful with that property! The textFrameIndex is counted 
by columns NOT text frames. If you have a two column frame, it 
increments the textFrameIndex by 2 and three; 3 etc.

So, if all your text frames are the same number of columns, you can work 
things out. If there's some single column frames and some multi-column 
frames, the textFrameIndex property is all but useless!

-- 
Harbs
http://www.in-tools.com
c
#1453
Author: Fred_Goldman
Date: Tue, 10 Feb 2009 13:57
1 lines
741 bytes
Very interesting, thank for the heads up!
Re: Index of textFrame in Story
#1454
Author: Dave_Saunders
Date: Tue, 10 Feb 2009 14:32
7 lines
742 bytes
OH BOY!

Surely that's a bug!

I'm going to check with my sources.

Dave
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads