Stack name of a standaone

Devin Asay devin_asay at
Fri Jan 9 16:35:06 EST 2009

On Jan 9, 2009, at 1:12 PM, J. Landman Gay wrote:

> Devin Asay wrote:
>> I need to read a property of a standalone stack from another main  
>> stack
>> that has been called by the standalone.
>> Anybody know a reliable way to get the stack name of a stack that has
>> been turned into a standalone, from within another stack that the
>> standalone has launched? It's easy to get the name of the standalone
>> stack when that's the active stack, just by getting 'the short name  
>> of
>> this stack'. But once that stack launches another stack, how do you  
>> do
>> it reliably?
> Something like this might work:
> go home
> get the name of this stack
> go back

Oh, this isn't nearly as impressive as the Rube Goldberg approaches  
I'd been trying! :-)

Actually, it works with some adjustments (for some reason 'go back'  
caused the launched stack to close, even with lock messages):

       push card
       lock screen
       lock messages
       go home
       put the short name of this stack into tLauncher
       pop card
       unlock messages
       unlock screen

The only problem is that there is an annoying flash when going to the  
"home" stack and back. Even lock screen didn't fix it. For now I'm  
using 'return line 1 of the mainStacks', but I'm not 100% certain that  
the standalone stack is always on line 1. (I've never seen different,  
but I haven't yet tested infinity cases. :) )


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

More information about the Use-livecode mailing list