Finding out a list of open stacks
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 184
- Joined: Wed Apr 10, 2013 5:09 pm
Finding out a list of open stacks
Hi everyone,
I am looking for a way to find out a list of all the current stacks that are open that are not LiveCode IDE stacks or plugins.
Thanks,
Andrew
I am looking for a way to find out a list of all the current stacks that are open that are not LiveCode IDE stacks or plugins.
Thanks,
Andrew
Re: Finding out a list of open stacks
Hi Andrew,
your subject lines almost had it
...
## Well, simple and Livecode-like
put the openstacks into tStackList
## Get rid of revXXX stacks:
filter tStacklist without "rev*"
answer tStackList
...

Best
Klaus
your subject lines almost had it

...
## Well, simple and Livecode-like

put the openstacks into tStackList
## Get rid of revXXX stacks:
filter tStacklist without "rev*"
answer tStackList
...

Best
Klaus
-
- VIP Livecode Opensource Backer
- Posts: 184
- Joined: Wed Apr 10, 2013 5:09 pm
Re: Finding out a list of open stacks
Hi Klaus,
Thanks! However I need to also filter stacks like the message box which do not have "rev" in their name.
Thanks,
Andrew
Thanks! However I need to also filter stacks like the message box which do not have "rev" in their name.
Thanks,
Andrew
Re: Finding out a list of open stacks
OK:
...
filter tStacklist without "rev*"
filter tStackList without "Message Box"
...
That's it
No other Rev stacks without the REV prefix.
Hint:
Since plugins can be named anything, you may be out of luck to differ these from other stacks.
Maybe check front- and backscripts, too, but in general this is not trivial.
...
filter tStacklist without "rev*"
filter tStackList without "Message Box"
...
That's it

No other Rev stacks without the REV prefix.
Hint:
Since plugins can be named anything, you may be out of luck to differ these from other stacks.
Maybe check front- and backscripts, too, but in general this is not trivial.
Re: Finding out a list of open stacks
You can also take a look at the revLoadedStacks function..
Re: Finding out a list of open stacks
Ah, yes, did not know about these params to that function:
...
Parameters
xmlerr, can't find element - xmlerr, can't find element
xmlerr, can't find element - xmlerr, can't find element
xmlerr, can't find element - xmlerr, can't find element
xmlerr, can't find element - xmlerr, can't find element
...

...
Parameters
xmlerr, can't find element - xmlerr, can't find element
xmlerr, can't find element - xmlerr, can't find element
xmlerr, can't find element - xmlerr, can't find element
xmlerr, can't find element - xmlerr, can't find element
...

-
- VIP Livecode Opensource Backer
- Posts: 184
- Joined: Wed Apr 10, 2013 5:09 pm
Re: Finding out a list of open stacks
Hi,
Thanks! That works.
Andrew
Thanks! That works.
Andrew
Re: Finding out a list of open stacks
I believe the different parameters are:
revLoadedStacks() -- shows all except the rev stacks
revLoadedStacks("all") -- shows them all
revLoadedStacks("preferences") -- shows stacks based on preferences settings (show/hide rev stacks)
revLoadedStacks() -- shows all except the rev stacks
revLoadedStacks("all") -- shows them all
revLoadedStacks("preferences") -- shows stacks based on preferences settings (show/hide rev stacks)
-
- VIP Livecode Opensource Backer
- Posts: 184
- Joined: Wed Apr 10, 2013 5:09 pm
Re: Finding out a list of open stacks
Thanks! That would work too.shaosean wrote:revLoadedStacks() -- shows all except the rev stacks
Andrew