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

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

TOPICS
Scripting
108
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

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

Translate
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

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

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

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

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

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

 

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