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

Pretty cool it that way. It's an option that I learn.

But I had a problem. I better give you an example.

 

I created two scripts:

The first script I called for TextFrame as you suggested:

 

var myDoc = app.activeDocument;
var myFrame = myDoc.textFrames[0];
myFrame.name = 'myTest';

 

 

The second script I created another variable MyFutureFrame call time and I associated the TextFrame 'myTest':

 

var myDoc = app.activeDocument;
var myFutureFrame = myDoc.textFrames.item('myTest');
alert(myFutureFrame.contents);

 

But before I run the second script, I grouped the Frame 'myTest' with other objects that were in the layout.

Then the second script suddenly fails because he did not find the MyFrame 'myTest'.

 

If I had not grouped, would have worked perfectly, but it's not reality as it happens at work.

What do you think?

 

Thanks again


Viewing all articles
Browse latest Browse all 37788

Trending Articles