Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

[CS4 JS] Shortcut to page object from paragraph

Community Expert ,
Jan 26, 2009 Jan 26, 2009
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.pageReferences[0].sourceText.parentTextFrames[0].parent.name);

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

Rick Quatro
TOPICS
Scripting
442
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jan 26, 2009 Jan 26, 2009
Rick,

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

Dave
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 26, 2009 Jan 26, 2009
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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jan 26, 2009 Jan 26, 2009
Can you show the code you used because they've always worked for me.

Dave
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 27, 2009 Jan 27, 2009
LATEST
I must have copied it wrong yesterday, because it is working now. Thanks.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines