Name

loadScripts — This method will load all of the BeanShell scripts from a specified folder.

Syntax

void loadScripts ( String dir ) 

The command has the following arguments:

dir

The name of the folder containing the script to evaluate.

Description

This method will load all of the BeanShell scripts from a specified folder. Any file that has a suffix of ".bsh" within the specified folder will be sourced into the global context of the interpreter. If the scripts contain immediate actions then they will be executed immediately. If the scripts contain function definitions they will be parsed and available for use at the Patchworks console prompt.