Skip to main content
Jeremy bowmangraphics
Inspiring
February 27, 2025
Answered

myText.parentTextFrames[0].parentPage is undefined?

  • February 27, 2025
  • 2 replies
  • 331 views

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

Correct answer m1b

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

2 replies

Robert at ID-Tasker
Legend
February 27, 2025
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. 

 

m1b
Community Expert
m1bCommunity ExpertCorrect answer
Community Expert
February 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

Jeremy bowmangraphics
Inspiring
February 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!

m1b
Community Expert
Community Expert
February 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