Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Viewing all articles
Browse latest Browse all 37788

Re: Search for items and access your content [CS5.5] [JSX] [Win XP]

$
0
0

Instead of the label, use a frame's name. You can set that in the Layers panel or as follows:

 

myFrame.name = 'myTest';

 

You get a handle on that frame later by this code:

 

var myFrame = myDoc.textFrames.item('myTest');

 

Note that this returns only one frame. If there are more frames with the same name, you need to loop through the frames as outlined above.

 

Peter


Viewing all articles
Browse latest Browse all 37788

Trending Articles



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