load

load(module_specifier) copy to clipboard

Load a library.

Pass a text or a record as a specifier of a library.The text should be a name of the library.The record can contain "version" and "reloading" labels.

You can use the "version" label to specify the verion of the library to be loaded.

The "reloading" label of true value cause to force reload the library.

Parameters
Result

script

Example
tell script "ModuleLoader"
load("SimpleTextLib")
load({name:"SimpleTextLib", version:"1.5", reloading:true})
end tell