6 Replies Latest reply on Sep 6, 2010 7:27 AM by mlavie

    How to Get All Frames Marked with a Given Tag

    mlavie Level 1

      Is there an elegant way to get a Frame (or other page item) based on its associated tag name? For example, if I wanted to get a TextFrame, which had been associated with the tag "Tag1", is there anything like:


      var myTextFrame = app.activeDocument.pages[0].getItemByTag("Tag1");


      I realize I could iterate through every frame in allPageItems until I found the one whose associated tag's markup has the name of "Tag1", but that would be slow and ugly.


      Any ideas?