Selecting items in a filtered list

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

Selecting items in a filtered list

Postby DixieCup48 » 14 Mar 2018 18:44

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

Re: Selecting items in a filtered list

Postby highend » 14 Mar 2018 19:59

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 or highend (at) web (dot) de

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

Re: Selecting items in a filtered list

Postby DixieCup48 » 15 Mar 2018 13:06

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

Re: Selecting items in a filtered list

Postby highend » 15 Mar 2018 13:08

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 or highend (at) web (dot) de


Return to “Tips & Tricks, Questions & Answers”



Who is online

Users browsing this forum: No registered users and 3 guests