set yourlib to loadLib(\"yourLib.scpt\")
set returnValue to yourLibraryFunction(args, whatever) of yourlib
on loadLib(which)
set libPath to (path to scripts folder as string) & \"lib:\"
return load script (a reference to file (libPath & which))
end loadLib
It looks like you're new here. If you want to get involved, click one of these buttons!