Quantcast
Channel: Adobe Community: Message List - FrameMaker Scripting
Viewing all articles
Browse latest Browse all 3715

Re: Infinite loop with pgf.ObjectValid

$
0
0

Whoops, never mind, I had a misplaced end bracket of the while. This is fixed now:

 

var doc = app.ActiveDoc;

var pgf = doc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf;

while ( pgf.ObjectValid() ) {

    Console('Hello');

pgf = pgf.NextPgfInFlow;

}

 

I learned a new way to do an infinite loop!


Viewing all articles
Browse latest Browse all 3715

Trending Articles