Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Guide ,
Oct 15, 2025 Oct 15, 2025

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

 

dublove_1-1760530266055.jpeg

 

TOPICS
How to , Scripting
44
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation