Page 1 of 1
Return file list for specific file type from select items?
Posted: 11 Mar 2021 16:30
by qwerty
solved
Re: Return file list for specific file type from select items?
Posted: 11 Mar 2021 17:14
by highend
Use formatlist() after quicksearch(), listfolder(), listpane(), report(), whatever...
Re: Return file list for specific file type from select items?
Posted: 11 Mar 2021 20:06
by qwerty
solved
Re: Return file list for specific file type from select items?
Posted: 11 Mar 2021 20:12
by highend
Oh, overread "selected"...
Regardless of that:
Code: Select all
$sel = <get SelectedItemsPathNames <crlf>>;
$pdf = formatlist($sel, "f", <crlf>, "*.pdf", "f");
$nonPdf = formatlist($sel, "f", <crlf>, "!*.pdf", "f");
Re: Return file list for specific file type from select items?
Posted: 11 Mar 2021 20:27
by qwerty
solved
Re: Return file list for specific file type from select items?
Posted: 11 Mar 2021 20:43
by highend
Because your separator is wrong^^
Re: Return file list for specific file type from select items?
Posted: 11 Mar 2021 20:51
by qwerty
solved
Re: Return file list for specific file type from select items?
Posted: 11 Mar 2021 20:55
by highend
The one that <get SelectedItemsPathNames <crlf>> uses?
Re: Return file list for specific file type from select items?
Posted: 11 Mar 2021 20:59
by qwerty
solved
Re: Return file list for specific file type from select items?
Posted: 11 Mar 2021 21:02
by highend
*cry*
Code: Select all
$sel = <get SelectedItemsPathNames <crlf>>;
$pdf = formatlist($sel, "f", <crlf>, "*.pdf<crlf>*.txt", "f");
$sel = <get SelectedItemsPathNames |>;
$pdf = formatlist($sel, "f", , "*.pdf|*.txt", "f");
Re: Return file list for specific file type from select items?
Posted: 11 Mar 2021 21:13
by qwerty
solved
Re: Return file list for specific file type from select items?
Posted: 11 Mar 2021 21:25
by highend
$pdf = formatlist($sel, "f", <crlf>, "*.pdf<crlf>*.txt", "f");^^
Re: Return file list for specific file type from select items?
Posted: 11 Mar 2021 21:30
by qwerty
Thank you so much!
