Skip to main content
Known Participant
January 20, 2020
Question

grab the amount of selected textframes in indesign

  • January 20, 2020
  • 0 replies
  • 207 views

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?

    This topic has been closed for replies.