Page 1 of 1
How to display list of folders in a pane?
Posted: 19 Aug 2015 04:51
by Papoulka
Scripting - I have created a string made up of folder names eg.
- $folist = "C:\temp\folder1|C:\temp\folder2|C:\temp\folder3|"
At the end of my script, I would like to display these folders in a list pane - just as if they had been found by a File Find manual search. I think XY can do this, but none of the scripting commands seem suited to it.
Thanks for any help
Re: How to display list of folders in a pane?
Posted: 19 Aug 2015 06:05
by Stef123
I don't know how to script it in detail, but couldn't you write that list into a paperfolder, then display it?
Re: How to display list of folders in a pane?
Posted: 19 Aug 2015 06:19
by bdeshi
you can also generate a saved search INI, then load that using sc loadsearch(). Just as if they had been found by a File Find manual search.
Re: How to display list of folders in a pane?
Posted: 19 Aug 2015 07:01
by highend
Code: Select all
$folist = "C:\temp\folder1|C:\temp\folder2|C:\temp\folder3|";
paperfolder("Temp", $folist, "|");
Easiest and fastest way is the paperfolder...
Re: How to display list of folders in a pane?
Posted: 19 Aug 2015 19:47
by Papoulka
Thanks stef123 & highend; paperfolder does what I need and I'll be using it. Plus I've learned something about PFs.
Sammay, I was originally hoping to get my compiled string into a true search results window. However, I don't see any way to create a search template from that string, especially not within a script. It looks like PFs are the best choice and I'm glad they get me so close to what I wanted.
Re: How to display list of folders in a pane?
Posted: 19 Aug 2015 20:03
by highend
However, I don't see any way to create a search template from that string
Why not? Save a search as a template. Use the content of it in a heredoc variable, replace the necessary item(s) with your $folist variable, save that template, load it...