export

export(a_script) copy to clipboard

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
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() -- "hello"