export(a_script)
Export a specified script object to other libraries before setup().
Use to provide a library without loading a file.
Add a script into the library cache for testing.
Parameters
- a_script (script) : a script to be a library
Result
script : me
Example
property ExtendedTextLib : "@module"
script SimpleTextLib
on hello()
return "hello"
end hello
end script
tell script "ModuleLoader"
export(SimpleTextLib)
setup(me)
end tell
ExtendedTextLib's hello()