Page 1 of 1
Get the path of my running stack?
Posted: Tue Feb 03, 2009 10:04 pm
by Garrett
I know I know... It's been posted here before... But I can't find it and my mind is totally lost on trying to remember how to do this.
Can someone please refresh my failing brain?
Thanks,
~Garrett
Posted: Tue Feb 03, 2009 10:27 pm
by SparkOut
should do it, shouldn't it?
otherwise
Code: Select all
the effective filename of this stack
You would then be able to use a slash as itemDelimiter and process items 1 to -1 of the returned filename to work on just the path.
Otherwise you might test the openStacks and list the long names and process things that way, but I think I gather you want the simple syntax above?
Posted: Tue Feb 03, 2009 10:50 pm
by Garrett
Thanks.. I had just found "the stacks" just before checking back in here and did some code to get the path of my stack, but lemme try what you posted too.
~Garrett
Posted: Tue Feb 03, 2009 10:53 pm
by Garrett
Seems both of those that you posted work. And it's much shorter than dealing with "the stacks".
I feel like a dummy now because I was trying
"the effective filepath of this stack"
instead of
"the effective filename of this stack"
LOL! Helps if i get the right word in play here doesn't it.

Posted: Tue Feb 03, 2009 11:21 pm
by SparkOut
Almost makes you believe like "the effective filepath"
should work, because it seems such a natural syntax. Still, it's pretty easy to drop the last item after setting the itemDelimiter to slash, so I guess it's not worth an enhancement request

Posted: Tue Feb 03, 2009 11:27 pm
by Garrett
I agree.
And the only reason I forgot it is because it's been a while since I last had to use that command. I really knew it was there, but due to my mental disabilties, it's hard sometimes for me to remember things exactly as they should be. So "name" becomes "path" out of deduction/reasoning instead of memory.
Again, thanks a bunch for helping me out on this.

~Garrett