Getting the stack name

J. Landman Gay jacque at hyperactivesw.com
Fri May 12 14:49:12 EDT 2006


Devin Asay wrote:
> We know that stackfile names (the .rev file name) and stack names are 
> not always the same. Given the stackfile name, and after opening the 
> stackfile with a go stack command, is there a reliable way to get the 
> short name of the main stack? Is the name of a newly opened stack ALWAYS 
> on the first line of the result of the openstacks function?

Yes, I think so. But I haven't ever done a specific test for it.

> 
> What I really want is 'get the short name of the mainstack of stackfile 
> "/my/stack/path/stack.rev"'.
> 
> Is there something obvious I'm overlooking?

You can refer to a stack by either its name or its filename, so it is 
legal to say:

  get the short name of stack "/my/stack/path/stack.rev"

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list