File Finder App: Ignore double quotes

Started by ubacher, May 24, 2021, 07:27:46 AM

Previous topic - Next topic

ubacher

When using Windows Explorer Shift-right click -> Copy as Path to produce a list of file names
it puts the names in "".

File finder should ignore double quotes in the input.

(Maybe it could ignore all characters not allowed in file names?)

Mario

I assume you are doing a straight copy & paste from the Windows Explorer clipboard contents into the File Finder Bulk Match input field?
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Mario

I added this enhancement to IMatch 2021.
If this is urgent, you can just apply the patch as follows:

Open in your editor.
Change line 366ff as follows:

if (a.length > 0) {
// Trim " and ' from the start and end.
if ((a[0] == '"') || (a[0] == '\'')) {
  a = a.substring(1);
}
if ((a[a.length-1] == '"') || (a[a.length-1] == '\'')) {
  a = a.slice(0, -1);
}

bulkMatchFileNames.push(a);


-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook