load library script --«script» doesn't understand the xxx message
I've been through the various posts I could find on this without spotting a solution.
I have two scripts, like this, a dummy library, saved on the Desktop with the name "abc.scpt"
--test library script
on myhelp()
display dialog "help"
end myhelp
and a script in an AS Editor window:
--test calling script
property f : (path to desktop as text) & "abc.scpt"
property lib : load script alias f
lib's myhelp()
The script compiles, so I know it's seeing the library script, but when I try to run it, it returns with the message:
«script» doesn’t understand the myhelp message.
What am I missing folks? I get the same problem trying it in either AS or Script Debugger and I've tried writing the files from scratch in both (not cutting and pasting over). No matter, I can't seem to get a library handler to run in a calling script.
Anyone know how I can solve this?
TIA 🙂