Loops

Excerpted from my book FrameScript for Newbies Copyright [7/17/2007] by Paul Schnall Loops are a way of moving through a book or document and running lines of code on each object of a particular type. For example, looping through every paragraph (paragraph being the object) in a document and searching for a specific word or text is easily done using this construct.

Read More

Its in the Script

Excerpted from my book FrameScript for Newbies Copyright [7/17/2007] by Paul Schnall

Loops are a way of moving through a book or document and running lines of code on each object of a particular type. For example, looping through every paragraph (paragraph being the object) in a document and searching for a specific word or text is easily done using this construct.
Read more... 

Knowing Where You Are

Excerpted from my book FrameScript for Newbies Copyright [7/17/2007] by Paul Schnall It is always good to know where you are, this is also true in scripting. Most FrameMaker objects have a text location or text range property. This property tells you the coordinates of the object. Then, these coordinates can be used to place other object relative to this location. For example, if you have the text range of a paragraph, then you can specify a new text location. The new text location can be anywhere within this text range. The text location can be used to add text at that point.

Read More