Skip to main content
Jeremy bowmangraphics
Inspiring
Feb 27, 2025 12:06 PM UTC
Answered

myText.parentTextFrames[0].parentPage is undefined?

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

m1b
m1bCorrect answer
Community Expert
Feb 27, 2025 1:37 PM UTC

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

4 replies

Robert at ID-Tasker
Legend
Feb 27, 2025 2:11 PM UTC
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
m1b
Community Expert
m1bCommunity ExpertCorrect answer
Community Expert
Feb 27, 2025 1:37 PM UTC

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
Jeremy bowmangraphics
Inspiring
Feb 27, 2025 1:50 PM UTC

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

Translate
m1b
Community Expert
Community Expert
Feb 27, 2025 1:56 PM UTC

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