Script to select files listed on clipboard

Discuss and share scripts and script files...
Post Reply
tgrand
Posts: 17
Joined: 03 Oct 2008 20:23

Script to select files listed on clipboard

Post 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!

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: Script to select files listed on clipboard

Post 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!
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

Post Reply