Setting DefaultStack to TopStack does not make it's stack script available?
brahma at hindu.org
Sat Aug 29 20:59:18 CEST 2015
I am trying to create some tools that can be used across many stacks. in
some cases it's not completely generic and I want to have functions
unique to scripts in the topstack to "fire"
stack 1 : utilities.livecode # set to palette mode
stack 2: topstack: myProject.livecode
in Stack 1 we have this button:
set the defaultstack to the topstack
put the htmltext of fld "textcontent" into url ( "file://" &
localPath() & "data/about-this-app.html")
But I'm getting an error because Stack 1 (in palette mode) cannot find
the function "localPath()"
Is this a bug... I could have sworn before that if you set the
defaultStack to the topstack then all it's scripts became part off of
the message path. But not today...
More information about the use-livecode