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 » 15 Sep 2020 02:50

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: 9256
Joined: 06 Feb 2011 00:33

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

Post by highend » 15 Sep 2020 08:10

One of my scripts helped you out? Please donate via Paypal or paypal_donate (at) stdmail (dot) de

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

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

Post by Jorgelin » 15 Sep 2020 15:56

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: 270
Joined: 30 Jun 2010 17:14

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

Post by kotlmg » 15 Sep 2020 17:09

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

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

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

Post by highend » 15 Sep 2020 17:19

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 or paypal_donate (at) stdmail (dot) de

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

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

Post by kotlmg » 15 Sep 2020 17:42

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

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

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

Post by highend » 15 Sep 2020 17:54

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

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

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

Post by kotlmg » 15 Sep 2020 17:57

thanks a lot. it is perfectly working.

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

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

Post by highend » 16 Sep 2020 09:53

One of my scripts helped you out? Please donate via Paypal or paypal_donate (at) stdmail (dot) de

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

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

Post by Jorgelin » 16 Sep 2020 16:54

Thanks highend

Post Reply