Set Script woes

Jim Bufalini jim at
Wed Apr 8 15:19:21 EDT 2009

Hi Hugh,

> I have a protected stack that creates a window and a group, then sets
> the
> group script. Works a treat. When run as a compiled application exe, it
> no
> longer sets the script (I know this because an answer dlog that should
> display the script comes up empty instead).
> The only thing I could think of is that the window it creates is
> somehow
> protected as well, but a similar answer dlog confirms that the passkey
> of
> the new stack is empty.
> Any clues or insights? Am stuck.
> Many thanks in advance,

I ran into something similar recently and it had to do with layering and
modal windows, which answer dialogs of course are. Try setting the topStack
or defaultStack back to the stack with the newly created group before
attempting to set the script.

Aloha from Hawaii,

Jim Bufalini

More information about the use-livecode mailing list