How can I disable a button unless *.jpg OR folders are selected?

As above - any thoughts?

Example: I have a folder full of *.jpg and some sub folders. I have a single command I can run on either, but no other types of files.

Is there some combination of wildcards or similar I can use with @disablenosel:~(*.jpg)... ?

I don't think there is a direct way to do that.

You could probably do it indirectly by having two buttons, one for handling folders and the other for handling files, then using @hidenosel so only one button or the other appears based on what is selected.

Yeah I have two buttons at the moment, but it's a little annoying :slight_smile:

I think @disablenosel:dirs,type=*.jpg will do what you want.

That works perfectly, thanks for following up on this.