APGen Documentation Previous Topic: Debugging APG Scripts Next Topic: When to Open the Output Stream Parent Topic: APG Scripts    APG Scripts
Guidelines for Writing APG Scripts
See Also:

APG Script Files

APG scripts are text files, consisting of blocks of content and script.  By default, they use a .APG extension, though any extension can be used.  For example, you may wish to use the .inc extension to denote an APG include file.  However, only APG scripts with a .APG extension can be run by double-clicking the script in Microsoft Windows Explorer.

APG Script files can be ANSI text files or Unicode text files.

Important Rule

An important rule for writing APG scripts is:

The output path should be set before any content is generated.

This rule has some exceptions, and requires a more thorough explanation.  To read more about this rule, see When to Open the Output Stream.

Other Guidelines

Other miscellaneous guidelines for writing APG scripts: