Frontier.enableAgents

Syntax Frontier.enableAgents (state)

Params state is a boolean containing either true (in which case agents are enabled) or false (in which case they are disabled).

Action Turns Frontier background agent processing on or off in accordance with state.

Returns True

Examples Frontier.enableAgents (true) // (Background processes are now on.)

Frontier.enableAgents (false) // (Background processes are now off.)
Notes This is the language equivalent of choosing "Enable/Disable Agents..." from the Misc sub-menu of the Main menu, except that there is no automatic confirmation dialog with respect to turning off Background Processes. (In fact, the menu items use this verb to carry out the user's instructions.)

Turning off agents can improve performance of Frontier in the time-critical sections of your scripts. But leaving them off all the time will disable some parts of the Frontier user interface, including the status message displayed in the About Frontier window and the swapping of the window-specific menus in the menu bar.

Discuss