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

Re: Is Find() dependable or should I use something else?

$
0
0

So is this a reasonable way to find a changebar:

 

var doc = app.ActiveDoc;

var pgf = doc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf;

 

while(pgf.ObjectValid()) {

    var textitems = pgf.GetText(Constants.FTI_CharPropsChange);

   

    for (var i=0; i < textitems.len ; i +=1)

    {

        var x = textitems[i].idata & Constants.FTF_CHANGEBAR

 

        if (x == 0) {

           $.writeln ('I have a changebar');

        }

    }

    

    pgf = pgf.NextPgfInFlow;

}


Viewing all articles
Browse latest Browse all 3715

Trending Articles



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