6 Replies Latest reply on May 29, 2014 1:31 PM by Mary Posner

    How do I reference by text frame label?


      This is the code I have found to work for adding text to a text frame.  It works just fine if there is always "text frame 2.


      tell application "Adobe InDesign CC"


        tell parent story of text frame 2 of page 1 of document 1

        set contents of insertion point -1 to "This is some copy I want to add" & return

        end tell

      end tell


      what I would like to do is reference the text frame by it's "label"

      The text frame is labeled "ProductCopy 2"

      So how would I do that?

      I am sure it is extremely simple but every thing I have tried fails to work.

      Sorry to be such a "Noob"