Page 1 of 1
Selecting Exact Files: How?
Posted: 25 Sep 2013 00:59
by SkyFrontier
1. do a dupe search;
2. on the results list, select first or non-first items then copy their full paths (ctrl+p).
How do i have them selected again, based off the clipboard (or a previously built list)?
selfilter() wont do (it's not meant to work with paths and selecting by base name will get duplicates either, which is not desired), nor selecitems() (it grabs all dupes either), nor Select Items... (ctrl+shift+m).
Bear in mind: exact files (minding full path) is the objective here.
Re: Selecting Exact Files: How?
Posted: 25 Sep 2013 17:19
by SkyFrontier
no way?
Re: Selecting Exact Files: How?
Posted: 25 Sep 2013 18:06
by serendipity
Selfilter will do it. You can choose which column to match from, in your case
Path.
If you have already copied the paths to clipboard using
File|To Clipboard|Item Paths then this script will work:
Code: Select all
sel;//Unselect
foreach($item,"<clipboard>","<crlf>"){
selfilter("""$item""",,"Path",1);
}
The assumption is that you did dupe search and hence your search result will have exactly one path for each dupe item.
Re: Selecting Exact Files: How?
Posted: 26 Sep 2013 01:34
by SkyFrontier
No, it won't.
=\
Variations like
Code: Select all
sel;//Unselect
foreach($item,"<clipboard>","<crlf>"){
$item = getpathcomponent("$item", path);
selfilter("""$item""", d,"Path",1);
}
or
Code: Select all
sel;//Unselect
foreach($item,"<clipboard>","<crlf>"){
$item = getpathcomponent("$item", path);
selfilter("$item", d,"Path",1);
}
or
Code: Select all
sel;//Unselect
foreach($item,"<clipboard>","<crlf>"){
selfilter("$item",,"Path",1);
}
are not working, either. Selfilter broken on this aspect? Can please anyone else check this?
Thanks, serendipity. The code does make sense.
Re: Selecting Exact Files: How?
Posted: 28 Sep 2013 16:45
by admin
OK, this did not work indeed. It was not really a bug but a missing feature. The next beta will bring enhancements. Then the following will work:
Code: Select all
sel; //Unselect
selectitems "<clipboard>", 2;
Re: Selecting Exact Files: How?
Posted: 19 Aug 2014 01:41
by SkyFrontier
The more I use Select Items with Paper Folders, the more I miss a tick box to match exact paths there.