Selecting items in a filtered list

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
DixieCup48
Posts: 111
Joined: 30 Jan 2018 14:58

Selecting items in a filtered list

Post by DixieCup48 »

Am working hard to improve scripting skills. Have gotten better but frequently come up short.

Am trying to select all MP3's from a filtered list. Have tried both:

Code: Select all

     selectitems  ".mp3";
     selectitems  "*.mp3";
but neither does the job. Can some one help?

highend
Posts: 13330
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Selecting items in a filtered list

Post by highend »

selectitems requires an itemlist, not a pattern...

Code: Select all

selfilter "*.mp3";
But depending on if you want to do something with these items afterwards, I'd tend to use e.g.:

Code: Select all

$files = listpane(, "*.mp3");
One of my scripts helped you out? Please donate via Paypal

DixieCup48
Posts: 111
Joined: 30 Jan 2018 14:58

Re: Selecting items in a filtered list

Post by DixieCup48 »

Thank you for the help and guidance. Your code has been inserted into the little script which now works!

It is sad though to this extent. Just when the learning curve was moving along hadn't even used the right scripting command. No wonder it wasn't working. :cry:

highend
Posts: 13330
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Selecting items in a filtered list

Post by highend »

Code: Select all

step; / unstep;
are your best friends (normally)...

or e.g. a question mark in front of a command (short version of step;)
One of my scripts helped you out? Please donate via Paypal

Post Reply