Page 1 of 1

Script to select files listed on clipboard

Posted: 11 Mar 2010 21:48
by tgrand
Here's a simple script I just came up with to select the files whose names are listed on the clipboard:

Code: Select all

selfilter(replace("<clipboard>", chr(13).chr(10), "|"))
This works if you have clipboard contents like:

Code: Select all

file1.txt
file2.txt
file3.txt
One easy way to set the clipboard like that is by using right-click->Clipboard->Item Names. In the situation that finally got me to write this script, I was dealing with the output from another program. I love being able to do this kind of stuff in XYplorer!

Re: Script to select files listed on clipboard

Posted: 11 Mar 2010 23:09
by SkyFrontier
Thanks for sharing it, TGrand!
I see it as a helpful way to extend XY's renaming facilities to external apps and list management in general. Just had to travel back in time and help myself on situations when I needed this in the past...

Well, while I can't, I enjoy this brand new XY extension brought by you! Thanks again!