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

myText.parentTextFrames[0].parentPage is undefined?

Engaged ,
Feb 27, 2025 Feb 27, 2025

Copy link to clipboard

Copied

Is it me, or does myText.parentTextFrames[0].parentPage no longer refer to the text frame containing myText?

TOPICS
Scripting

Views

93
Translate

Report

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

correct answers 1 Correct answer

Community Expert , Feb 27, 2025 Feb 27, 2025

Hi @Jeremy bowmangraphics, it seems to be working as normal for me (Indesign 20.1, MacOS 15.3.1). Can you set up a bare bones demo document and script that shows the problem?

- Mark

Votes

Translate
Community Expert ,
Feb 27, 2025 Feb 27, 2025

Copy link to clipboard

Copied

Hi @Jeremy bowmangraphics, it seems to be working as normal for me (Indesign 20.1, MacOS 15.3.1). Can you set up a bare bones demo document and script that shows the problem?

- Mark

Votes

Translate

Report

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
Engaged ,
Feb 27, 2025 Feb 27, 2025

Copy link to clipboard

Copied

AHA! Thanks very much! — In the course of preparing a bare bones demo document + script, I realized my elementary scripting error! Thanks again!

Votes

Translate

Report

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 ,
Feb 27, 2025 Feb 27, 2025

Copy link to clipboard

Copied

Yep, done that many times! Whenever I think I've found a bug, I immediately set about creating that bare bones version that I can post here and everyone can test. Usually in the process I realize what's really going on. Haha!

- Mark

Votes

Translate

Report

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 ,
Feb 27, 2025 Feb 27, 2025

Copy link to clipboard

Copied

LATEST
quote

Is it me, or does myText.parentTextFrames[0].parentPage no longer refer to the text frame containing myText?


By Jeremy bowmangraphics

 

Won't work if text is overset. 

 

Votes

Translate

Report

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