🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.scripting.indesign
5 messages
5 total messages Started by Rick_Quatro Mon, 26 Jan 2009 19:27
[CS4 JS] Shortcut to page object from paragraph
#1780
Author: Rick_Quatro
Date: Mon, 26 Jan 2009 19:27
7 lines
981 bytes
I have the index markers inside of paragraphs that can be directly in a story, but can also be inside of tables and anchored text frames. Is there a shortcut way of getting the page object of any paragraph? Right now, I am using this

$.writeln(index.allTopics[i].pageReferences[0].sourceText.parentTextFrames[0].parent.name);

This works unless the text is nested deeper than the basic story. Thanks in advance.

Rick Quatro
Re: [CS4 JS] Shortcut to page object from paragraph
#1784
Author: Dave_Saunders
Date: Mon, 26 Jan 2009 21:38
5 lines
754 bytes
Rick,

see: <http://www.adobeforums.com/webx?128@@.59b77ee3>

Dave
Re: [CS4 JS] Shortcut to page object from paragraph
#1788
Author: Rick_Quatro
Date: Mon, 26 Jan 2009 22:10
5 lines
751 bytes
Hi Dave,

Thanks. Neither functions in the thread seems to work with paragraph objects. They returned undefined when I pass a paragraph to them.

Rick
Re: [CS4 JS] Shortcut to page object from paragraph
#1791
Author: Dave_Saunders
Date: Mon, 26 Jan 2009 22:42
3 lines
764 bytes
Can you show the code you used because they've always worked for me.

Dave
Re: [CS4 JS] Shortcut to page object from paragraph
#1714
Author: Rick_Quatro
Date: Tue, 27 Jan 2009 19:10
1 lines
755 bytes
I must have copied it wrong yesterday, because it is working now. Thanks.
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