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

Re: TextLoc works once, then stops working

$
0
0

By the way, I realized where my original flawed code came from: The FrameMaker 10 Scripting Guide, p.6. It gives this sample:

 

var doc = app.ActiveDoc;

var tl = new TextLoc();

var firstPgf = doc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf;

tl.obj = firstPgf;

doc.AddText (tl, "Hello");

doc.AutoChangeBars =1;

 

FrameMaker ExtendScript tech writers please take note that this sample needs t1.offset = 0; added or it only works one time.


Viewing all articles
Browse latest Browse all 3715

Trending Articles



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