MoneyWorks Manual
Load
Automatically called: When your script is loaded. Scripts in the document are usually loaded when you open or connect to a MoneyWorks document, and when you click Activate in the Script Editor.
Use for: To do any necessary initialisation you need (such as installing a menu command in the Command menu).
Return value: ignored
Example :
on HelloWorld
    Alert("Hello World")
end
on Load
    InstallMenuCommand("Say Hello", "HelloWorld")
end
Note: You should not normally do anything that invokes a modal user interface (like Alert), or making database requests in a Load handler because the script will load every time every user logs into the document. If you are writing a script that you want to manually invoke from the script editor, you can use the LoadFromScriptEditor handler.