I shall do as you suggest, but first this.
I wanted to record in a movie what was happening in case anyone couldn't envisage it or just didn't believe it
With the
Tools Palette and my main stack visible, I started QuickTime Player, which has an excellent tool for partial screen capture in video format. As soon as I clicked outside LiveCode (in this case, in Finder), the
Tools Palette disappeared, whereas my main stack remained visible (and, just in case, I used Mission Control to check that the Tool Palette had been removed and not merely placed somewhere it could not be seen). Anyway, clicking in the main stack brought the
Tools Palette (and the Message window, incidentally) back again and you can see how it automagically disappears in a small movie (1.5 MB) at
http://davidneale.eu/movies/ToolsPalette.m4v
What you see is LiveCode with apparently just one window active, that of my own stack; I click in this to activate the two other windows that were active prior to starting QuickTime Player, namely the
Tools Palette and the message window. I then click the ePub templates button: this causes the
Tools Palette to disappear and a card of the substack to appear. I close the substack window by clicking its standard OS X window close button. This produces the "Do you want to save" message, which I dismiss and the window closes. I go to the message window to execute the "set the visible of stack "revTools" to true" command and the
Tools Palette reappears.
Here, the script of the ePub templates button was
on mouseUp
open stack "eBook templates"
end mouseUp
Changing the "open" to "go" produces the same result.