Global Environment Scripts
Global environment scripts allow you to enter functions, classes, variables, etc, that are available for, or will execute over, all processes. They also allow the setting of global assembly imports and references, which are valid over Automator process boundaries. Global environment scripts are split into three sections:
Global Declarations: Used for variables, classes, functions, subroutines, etc., that need to be available across all Automator processes.
References and Imports: Used for importing .NET namespaces and .NET assemblies for global use.
Passwords: Used to specify passwords for use in password macros.
For global environment scripting, access the Script Editor by clicking Automator > Standard Processes on the Navigation Tree and then selecting Scripts from menu.