ModuleLoader



Moduleload back_ backend

  • Infinite loop in ModuleLoader.iterateModules Start Scrum Poker. Start Scrum Poker Export. XML Word Printable. Type: Bug Status: Resolved (View Workflow).
  • ModuleLoader(basepath) The ModuleLoader can be generated with no parameters. In that case, the instance has the absolute path where it was initialized. Directory /usr/local/src/project/ ├ example.py └ validator/ ├ validatora.py ├ validatorb.py └ validatorc.py example.py.

And use SPModuleLoader instead of ModuleLoader (was renamed in drop 6). As reference, here are the links to the issues on GitHub: - sp-module-loader loadCss broken in Drop 6 #286 - Using custom CSS plus the ModuleLoader.loadCss problem #79.

ModuleLoader is a system for managing and loading libraries(modules) of AppleScript.

In OS X 10.9, built-in support of libraries was introduced to AppleScript, which called as 'AppleScript Libraries'. ModuleLoader is a yet another library system, which has been developed from 2006 before release of OS X 10.9, and has been maintained without interruption until now.

ModuleLoaderModuleLoaderJava

ModuleLoader have similar functions to 'AppleScript Libraries' as follows.

Module Loader Javascript

  • Find a library from predefined locations and load the library as a script object.

    Libraries are searched from following sub-folders under user's home directory and the root directory.

    • Library/Scripts/Modules
    • Library/Script Libraries
  • Sub-libraries required by the loaded library are automatically loaded.
  • The version of a library to be loaded can be specified.

In OS X 10.9 or later, AppleScript Libraries will be first choice to work with libraries. 'AppleScript Libraries' will be sufficient in usual tasks. But ModuleLoader can work with 'AppleScript Libraries' and complement following missing functions of 'AppleScript Libraries'.

Moduleloader.pas

  • All libraries can be loaded and embeded at compile time.
    • Loading all libraries when compiling a script causes removing dependencies on libraries and ModuleLoader.osax. The script can works other computers in which the libraries and ModuleLoader.osax are not installed.
  • Libraries can be forced to reload anytime.
  • AppleScript text source file (.applescript) , applets and droplets can be libraries.
  • Arbitrary locations can be added into locations to search for libraries.
    • ModuleLoader has high flexibility to customize locations to search for libraries.