SC: best way to extract only file or folders from selection?

Discuss and share scripts and script files...
Post Reply
Filehero
Posts: 2731
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

SC: best way to extract only file or folders from selection?

Post by Filehero »

Hi,

started with a real requirement (needing flattenfolder for ExifTool manipulations) I decided UDF unflattenfolder would also be cool, I've ended up adapting Ken's great WhiteSpaceCtxMenu (thanks Ken :D ) just for the fun of scripting.

15.70.0101 brought us two marvellous new features: Search in List (SC quicksearch) and enhanced <selitems [separator]>. Very, very, very helpful stuff! :appl: :appl: :appl:

But one thing I'm still stuck - which I have thought would have been already "solved" by the improvements mentioned above:

How can I extract all selected files from the current list selection without having to do boring boilerplate filtering using brute-force

Code: Select all

if (exists($entry) == 1)

Code: Select all

quicksearch("* /n /f", "<selitems ;>", "<crlf>");
is the one-liner I hoped for, but it dives deeper one level for every selected folder.

:?:

Thanks for inspiration. :beer:

/e: typo

Post Reply