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

grab the amount of selected textframes in indesign

Community Beginner ,
Jan 20, 2020 Jan 20, 2020

Copy link to clipboard

Copied

i know this is probably something simple i am missing. I am just trying to grab which text frames are selected so i can then (do something) to those selected.

 

here is what i am working with:

var myDoc = app.activeDocument;
var textFrame = myDoc.textFrames.selection[0];

for(var i = 0; i < textFrame.length; i++) {
    var frameCount = textFrame[i];
}

alert("text frame amount:" + frameCount);

anyone have any ideas?

Views

151

Translate

Translate

Report

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