Skip to main content
dublove
Legend
Oct 15, 2025 12:11 PM UTC
Question

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

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;
}