Page 1 of 1
Need a script: Select files until an extension or file type
Posted: 15 Sep 2020 02:50
by Jorgelin
Hi, I don't know if it's possible, but maybe it is.
From a selected file, select up files until an image, jpg, gif or png. NOT SELECTING THE IMAGE
example
file.jpg
file2.pdf selected file with script
zfile.zip selected file with script
file.pdo selected file
another example
file.png
file2.pdf selected file with script
sfile.rar selected file with script
zfile.zip selected file with script
file.pdo selected file
Thanks.
Re: Need a script: Select files until an extension or file type
Posted: 15 Sep 2020 08:10
by highend
Select files above up to (but not including) an image.xys
Re: Need a script: Select files until an extension or file type
Posted: 15 Sep 2020 15:56
by Jorgelin
Thanks highend.
what about another one, the same before but including the image in the selection and moving all selected files to the right pane to a folder named with the first file selected name.
Re: Need a script: Select files until an extension or file type
Posted: 15 Sep 2020 17:09
by kotlmg
is it possible to select all files below the selected file?
Re: Need a script: Select files until an extension or file type
Posted: 15 Sep 2020 17:19
by highend
what about another one
If I find the time for it...
is it possible to select all files below the selected file?
sel "+1", <get countitems> - gettokenindex(<curname>, listpane(, , 4), , "i");
Re: Need a script: Select files until an extension or file type
Posted: 15 Sep 2020 17:42
by kotlmg
thanks a lot.
one line code is marvellous.
can you give one line code for selecting files above also?
Re: Need a script: Select files until an extension or file type
Posted: 15 Sep 2020 17:54
by highend
sel 1, gettokenindex(<curname>, listpane(, , 4), , "i") - 1, 1;
Re: Need a script: Select files until an extension or file type
Posted: 15 Sep 2020 17:57
by kotlmg
thanks a lot. it is perfectly working.
Re: Need a script: Select files until an extension or file type
Posted: 16 Sep 2020 09:53
by highend
Select files above up to (and including) an image [move to dual pane].xys
Re: Need a script: Select files until an extension or file type
Posted: 16 Sep 2020 16:54
by Jorgelin
Thanks highend