Haiku Keeping your scripts organized

lupinglade

Senior Member
For anyone scripting with HaikuHelper, did you know you can include files into the script?

This allows you to keep your scripts organized by file in the Scripts folder HaikuHelper provides. This way you can break up different scripts/operations into separate files for easier maintenance and even to be able to disable a single part of your scripts easily. You can also more easily share your scripts with other users this way.

HaikuHelper will look for your script file in its Scripts folder, to access this folder use the Script menu in Haiku and select the "Show Scripts Folder…" option. Create your script files in this folder. Then to include them, simply add this code in the Script Editor for each script file you want to include:

Code:
helper.include(controller, "Example.js")
 
Back
Top