Eggplant Functional Script Preferences
Eggplant Functional (EPF) Script Preferences contain the controls for features that can make it easier for you to read and write scripts. Script Preferences can be found by going to Eggplant > Preferences, then selecting the Script tab.
General
The General pane of the Script Preferences tab provides basic controls for working with scripts in your Eggplant Functional suites.
The Script preferences General pane, shown with default settings.
Script Saving
When a script is run: This preference determines how Eggplant Functional deals with unsaved script changes when you run a script. You have the following options:
- Don't save: Select this option to run scripts without saving changes.
- Save that script: Select this option to auto-save script changes before running scripts.
- Save all scripts: Select this option to auto-save all open scripts before running the current script.
- Ask to save: Select this option to be alerted to unsaved script changes when you run a script.
When a running script calls another script, the called script is read from the currently saved copy. If you have unsaved changes in the called script, they are not executed.
When a script is modified: This preference determines what Eggplant Functional does if another user saves changes to a script while you are using it. You have the following options:
- Ignore: Select this option to keep the script as it currently appears on your desktop without loading the newly saved version.
- Reload the script: Select this option to reload your script when Eggplant Functional detects that the saved version has changed.
- Ask to reload: Select this option to have Eggplant Functional ask you whether to keep the current version or load the saved version of your script.
Reload breakpoints from last save: Select this checkbox to automatically reset saved breakpoints when you open scripts.
Tab Key Behavior
Pressing the Tab Key: This preference determines what Eggplant Functional does when the tab key is pressed in the script editor. You have the following options:
- Triggers Auto-Indenting:
Default.
This triggers auto-indenting of the script displayed and updates the colorization. - Inserts a Tab Character: Inserts a tab character but does not trigger auto-indenting or colorization of the script.
- Inserts a Tab and Auto-Indents: Inserts a Tab character and triggers auto-indenting and colorization of the script.
Text
Default Script Font: This field displays the default font of your text in the Script Editor. (New text and plain text loaded from other scripts are both displayed in this font.) Click Set to select a font on your system. This font choice is also used in the initial setting of the folder global property at the beginning of each script run.
Script Log Font: This setting determines the font used to display script results and output in the Log Area of the Run window. Click Set to select a font on your system.
Allow Text Drag and Drop: Drag-and-drop text is disabled in the Script Editor by default. Select this checkbox if you want to be able to move text by dragging it.
Action Scripts Templates File Section
When this field is blank, Eggplant Functional uses the built-in template file for generating Action Scripts. Click Customize to save a local copy of the template file that you can edit. Click Browse to locate a custom template file on your system.