I'm trying to disable a button using @disablenosel in v12.10 unless a single folder is selected where the path meets the following wildcard criteria:
*\homedata\USERS\
I've got the numdirs=1 working but the wildcard on the end isnt working.
As I use dual display I would Ideally like a wildcard that only enables the button if BOTH the left and right folder paths match the above wildcard. This will ensure that the button is only active if a single directory beneath the USERS directory in the left pane is selected, and the same path on a different drive is selected.
For example, this would be a valid directory selection:
Source : C:\homedata\USERS\Steve
Dest : D:\homedata\USERS\
If I can only restrict when the wildcard path of the selected pane matches then that would be a start.
@disablenosel tests the selection. If you want to test the current path, use @disableifpath
(I'm not sure if you can use both at once or not. It might work. If not, a script could have extra logic to prevent the button doing anything in the wrong folders, but not to enable/disable it dynamically.)