'Go' in floating toolbar button

This button on my floating toolbar works as expected:

Go D:\

If no lister is open, it will open a standard lister.

However, if I add a line

Go D:\ Select DATE=newest DESELECTNOMATCH
it only works if a lister is already open. If no lister is open, it will not open a new one.

Is that a bug or a misunderstanding on my side?


Directory Opus Pro 12.2 Build 6109 x64
OS 6.1 (B:7601 P:2 T:1) SP 1.0 "Service Pack 1"

You need to embed the Select command so that it's passed along to the new Lister. As it is now, Opus sees the Select command (which needs a target Lister) and if one isn't open, the function will fail.

Change your command to:

Go D:\ NEWTAB=findexisting [ Select DATE=newest DESELECTNOMATCH ]

The square brackets mark the enclosed commands as "embedded" commands that are to be executed in the context of the new Lister. The NEWTAB is needed to make sure the embedded command gets run even if the folder is already open.

Thanks for the speedy answer. The pointer to embedded functions really improved my understanding and helped with some other buttons, too. :thumbsup:

Did I get this right: functions will not run at all if they contain a single instruction that would fail?

In general, functions won't run if they contain a line which is flagged to need things (e.g. selected files, destination folder) which aren't available.

(There are some exceptions, like if you run the Select command then things which need selected files will be allowed to run. And some commands will prompt for things like destination folders, instead of failing to run, if they need them and they aren't there.)