Predefined Variables
These variables are defined for each script and are the primary access to Flying Logic documents and other features.
Last updated
These variables are defined for each script and are the primary access to Flying Logic documents and other features.
Last updated
These variables are defined for each script and are the primary access to Flying Logic documents and other features.
Name
Description
document
This represents the current document and is an instance of the Document class.
Application
This is a singleton instance of the Application class. Methods and variables that are not related to particular documents can be accessed through this object.
scriptParentDirectory
The path to the directory containing the script.
scriptMode
Has 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.