According to the manual "Internal commands always run synchronously - Opus will always wait for an internal command in a function to finish before moving on to the next instruction.".
So I expected my command:
Go CURRENT NEW=nodual
Prefs STYLE Video
to open a new lister to the current lister location, then set the style named video on that lister.
Line 1 does indeed open the new lister and make it active.
However, line 2 sets the style on the original lister that was open (has my button on it to run this command).
I thought perhaps I could add some sort of 'wait' command but there isn't one.
Have I misunderstood the manual? Is there another way I can open the new lister with this style?
Incidentally, I created a new lister layout with the correct style assigned. If I open that lister manually it does open with the specified style as saved. But if I run the command Go CURRENT LAYOUT=VideoLayout, it opens a new lister and my Styles toolbar has the Video style button highlighted however the style is not actually applied. I must press the style button again to actually get it applied - but this is an aside