Legend
March 29, 2026
Answered
How to I refer to the outermost text Frame?
- March 29, 2026
- 3 replies
- 42 views
It didn't turn over again.
I have a text box A that contains another text box B. I have currently selected B, meaning that the current item is B. How do I refer to A?
var doc = app.activeDocument;
var item = doc.selection[0]; // Current selected item
var items = doc.selection; // All currently selected items
var B = item;
var A = item.parent.parent;
var A2=item.parent.parentTextFrames;
alert(A);The result is [object Story]
How do I convert this to a text frame?
Is this it? item.parent.parentTextFrames;
But it seems like my function isn't responding.
Thank you.

