Hi all,
I am just beginning to study applescript and am getting pretty frustrated. Going straight by the book (Nutshell) I am trying to set up a method library and call its scripts by another script. The method-library script reads:
on sayGoodbye()
display dialog “Goodbye”
end sayGoodbye
on sayTschuess()
display dialog “Tschüss!”
end sayTschuess
and is saved as a compiled script.
The calling script reads:
set bye to load script “Partition 4:Skripte:Methodenbibliotheken:farewell”
bye’s sayGoodbye()
bye’s sayTschuess()
and is also saved as a compiled script. The error-message I get reads:
“Can’t make “Partition 4:Skripte:Methodenbibliotheken:farewell” into a item”
The funny thing is: It works when I execute the calling script from within the smile editor window. But NOT, when I save it as a script and try to launch by clicking on it. And it does NOT work at all when started from within AppleScript Editor.
Very puzzled and appreciating all help,
Dirk