I have stack with a substack, which is a personal script library.
The following script is in the main stack:
Code: Select all
on preOpenStack
insert the script of stack "MyLibStack" into back
end preOpenStack
on openStack
answer the backScripts // just to be sure script of "MyLibStack" has been loaded
answer myFunction("test") // myFunction() is in the substack "MyLibStack"
end openStack
It looks like the script of "MyLibStack" has NOT been loaded, though "MyLibStack" appears in the backScripts.
Using LC Community 8.14
Of course, I can put the scripts of "MyLibStack" in the main stack, and remove "MyLibStack", but I would like to understand what is happening.
(sorry in advance, maybe I'll not be able to check this thread for a few days)
EDIT: when the startup process is completed, any call to script in "MyLibStack" substack works.