Thread View: adobe.scripting.indesign
3 messages
3 total messages
Started by Fred_Goldman
Sun, 25 Jan 2009 23:43
[JS] "Story offset" of paragraph
Author: Fred_Goldman
Date: Sun, 25 Jan 2009 23:43
Date: Sun, 25 Jan 2009 23:43
6 lines
812 bytes
812 bytes
How do you find out the index of a selected paragraph within a story. app.selection[0].paragraphs[0].index; For some reason the above returns the index of the first character within the story.
Re: [JS] "Story offset" of paragraph
Author: Fred_Goldman
Date: Sun, 25 Jan 2009 23:59
Date: Sun, 25 Jan 2009 23:59
3 lines
860 bytes
860 bytes
I ended up looping through the paragraph elements of the story until app.selection[0].paragraphs[0] turned true. If there is a better way I would be interested in hearing.
Re: [JS] "Story offset" of paragraph
Author: Robert Tkaczyk
Date: Mon, 26 Jan 2009 00:45
Date: Mon, 26 Jan 2009 00:45
11 lines
1050 bytes
1050 bytes
search forum - was discusion about that in last week or so or look at this thread: CS3 Javascript - finding the paragraph which contain the index page reference http://www.adobeforums.com/webx?128@@.3bbf275d.59b75803 robin -- www.adobescripts.com
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