Skip to main content
dublove
Legend
September 3, 2025
Answered

I've seen .parentFrame before, but the name seems off?

  • September 3, 2025
  • 3 replies
  • 207 views

Regardless of the level, one can directly access the text box layer.
There's no need for multiple levels of navigation like .parent.parent.parent.
For example, cell.parentFrame or contents.parentFrame?

Correct answer rob day

 

Do you mean parentTextFrames, which is a property (array) of text objects--text, character, insertionPoint, etc?

 

https://www.indesignjs.de/extendscriptAPI/indesign-latest/index.html#Text.html

 

3 replies

rob day
Community Expert
rob dayCommunity ExpertCorrect answer
Community Expert
September 3, 2025

 

Do you mean parentTextFrames, which is a property (array) of text objects--text, character, insertionPoint, etc?

 

https://www.indesignjs.de/extendscriptAPI/indesign-latest/index.html#Text.html

 

m1b
Community Expert
Community Expert
September 3, 2025

By the way, sometimes you need to ask for the text of something, for example:

var myCellsFrame = myCell.texts[0].parentTextFrames[0];
dublove
dubloveAuthor
Legend
September 4, 2025

That should be it. Thank you both very much.

m1b
Community Expert
Community Expert
September 3, 2025

Hi @dublove any Text object has a parentTextFrames property which returns an array of the text frames that contain the text.