Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Predefined Variables

These variables are defined for each script and are the primary access to Flying Logic documents and other features.

NameDescription
documentThis represents the current document and is an instance of the Document class.
ApplicationThis is a singleton instance of the Application class. Methods and variables that are not related to particular documents can be accessed through this object.
scriptParentDirectoryThe path to the directory containing the script.
scriptModeHas the value importer, exporter or standard. This allows one script to act in any of the three modes; i.e., a script could be written as an importer and exporter.
importItemLabel
exportItemLabel
runItemLabel
These write-only variables will assign a custom name to the script’s menu item. See Writing Importers and Exporters for details.
defaultExtensionsAPI 1.17
Optional list of extensions an importer or exporter expects for filenames.