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

Documenting your Scripts

Excerpted from my book FrameScript for Newbies Copyright [7/17/2007] by Paul Schnall As you write scripts you should always document them. Anything that is relevant to the creation and use of the script can be put in the script as a comment. It is always advisable to put a section at the top of the script to give you and other readers pertinent information. This information can include:

Read More

FrameScript for Newbies

Excerpted from my book FrameScript for Newbies Copyright [7/17/2007] by Paul Schnall In general FrameScript is used to perform complicated tasks on large books or on whole document sets. Scripts can also be written to perform tasks on the document level, these range from manipulating paragraphs to tables. Large complicated scripts are usually written by professional scriptwriters, but with a little help any technical writer can acquire the skills needed to start writing scripts quickly and easily.

Read More