Need a script: Select files until an extension or file type

Discuss and share scripts and script files...
Post Reply
Jorgelin
Posts: 3
Joined: 15 Sep 2020 02:26

Need a script: Select files until an extension or file type

Post 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.

highend
Posts: 13309
Joined: 06 Feb 2011 00:33

Re: Need a script: Select files until an extension or file type

Post by highend »

One of my scripts helped you out? Please donate via Paypal

Jorgelin
Posts: 3
Joined: 15 Sep 2020 02:26

Re: Need a script: Select files until an extension or file type

Post 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.

kotlmg
Posts: 298
Joined: 30 Jun 2010 17:14

Re: Need a script: Select files until an extension or file type

Post by kotlmg »

is it possible to select all files below the selected file?

highend
Posts: 13309
Joined: 06 Feb 2011 00:33

Re: Need a script: Select files until an extension or file type

Post 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");
One of my scripts helped you out? Please donate via Paypal

kotlmg
Posts: 298
Joined: 30 Jun 2010 17:14

Re: Need a script: Select files until an extension or file type

Post by kotlmg »

thanks a lot.
one line code is marvellous.
can you give one line code for selecting files above also?

highend
Posts: 13309
Joined: 06 Feb 2011 00:33

Re: Need a script: Select files until an extension or file type

Post by highend »

sel 1, gettokenindex(<curname>, listpane(, , 4), , "i") - 1, 1;
One of my scripts helped you out? Please donate via Paypal

kotlmg
Posts: 298
Joined: 30 Jun 2010 17:14

Re: Need a script: Select files until an extension or file type

Post by kotlmg »

thanks a lot. it is perfectly working.

highend
Posts: 13309
Joined: 06 Feb 2011 00:33

Re: Need a script: Select files until an extension or file type

Post by highend »

One of my scripts helped you out? Please donate via Paypal

Jorgelin
Posts: 3
Joined: 15 Sep 2020 02:26

Re: Need a script: Select files until an extension or file type

Post by Jorgelin »

Thanks highend

Post Reply