Skip to main content
dublove
Legend
October 15, 2025
Question

I dragged to select the cell. Is there another way to get the text frame?

  • October 15, 2025
  • 0 replies
  • 51 views

My current code looks like this, where I'm using 'item.parent.parent'.

but it feels a bit clunky.


Is there a better way to access `parentTextFrames[0]`?

var item = app.selection[0];
if (item.constructor.name == “Cell”) {
var textFrame = item.parent.parent;
}