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.
Selecting Exact Files: How?
-
SkyFrontier
- Posts: 2341
- Joined: 04 Jan 2010 14:27
- Location: Pasárgada (eu vou!)
Selecting Exact Files: How?
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...
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
-
SkyFrontier
- Posts: 2341
- Joined: 04 Jan 2010 14:27
- Location: Pasárgada (eu vou!)
Re: Selecting Exact Files: How?
no way?
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...
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: Selecting Exact Files: How?
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:
The assumption is that you did dupe search and hence your search result will have exactly one path for each dupe item.
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);
}
-
SkyFrontier
- Posts: 2341
- Joined: 04 Jan 2010 14:27
- Location: Pasárgada (eu vou!)
Re: Selecting Exact Files: How?
No, it won't.
=\
Variations like
or
or
are not working, either. Selfilter broken on this aspect? Can please anyone else check this?
Thanks, serendipity. The code does make sense.
=\
Variations like
Code: Select all
sel;//Unselect
foreach($item,"<clipboard>","<crlf>"){
$item = getpathcomponent("$item", path);
selfilter("""$item""", d,"Path",1);
}
Code: Select all
sel;//Unselect
foreach($item,"<clipboard>","<crlf>"){
$item = getpathcomponent("$item", path);
selfilter("$item", d,"Path",1);
}
Code: Select all
sel;//Unselect
foreach($item,"<clipboard>","<crlf>"){
selfilter("$item",,"Path",1);
}
Thanks, serendipity. The code does make sense.
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...
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
-
admin
- Site Admin
- Posts: 66346
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Selecting Exact Files: How?
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;
FAQ | XY News RSS | XY X
-
SkyFrontier
- Posts: 2341
- Joined: 04 Jan 2010 14:27
- Location: Pasárgada (eu vou!)
Re: Selecting Exact Files: How?
The more I use Select Items with Paper Folders, the more I miss a tick box to match exact paths there.
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...
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
XYplorer Beta Club