Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Scripting
Viewing all articles
Browse latest Browse all 15932

How do I reference by text frame label?

$
0
0

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.

 

tellapplication "Adobe InDesign CC"

  activate

  tellparent storyoftext frame2ofpage 1 ofdocument 1

  setcontentsofinsertion point -1 to"This is some copy I want to add"& return

  endtell

endtell


BUT

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"


Thanks

Mike



Viewing all articles
Browse latest Browse all 15932

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>