From my reading of the manual I expected this batch command to open C:\Relay in a new source lister and then open C:\Users\AB\Downloads in a second tab.
set rt="c:\program files\gpsoftware\directory opus\dopusrt.exe"
%rt% /cmd Go "C:\Relay" new=source
%rt% /cmd Go "/downloads" newtab=findexisting
What actually happens is that C:\Users\AB\Downloads opens in a second lister instead of a new tab. What am I doing wrong?
DOpusRT.exe is asynchronous, so the second line is probably running before the lister has finished opening, and ends up affecting the old lister instead.
A better way is to create either a layout or a user command so that you can launch what you want via a single DOpusRT.exe command.
[quote="leo"]DOpusRT.exe is asynchronous, so the second line is probably running before the lister has finished opening, and ends up affecting the old lister instead.
A better way is to create either a layout or a user command so that you can launch what you want via a single DOpusRT.exe command.[/quote]
Understood, and I already make extensive use of layouts for this and other purposes. The background to my question is that in an idle moment I decided to delve into the mysteries of DopusRT. I guessed that the observed result was a timing thing and you have now confirmed. Thanks.
Without knowing anything about the internal plumbing of DopusRT, would it be feasible to add support for command chaining using a separator character/string. For example, if the separator was defined as ;; then my sample commands could be combined into..
set rt="c:\program files\gpsoftware\directory opus\dopusrt.exe"
%rt% /cmd Go "C:\Relay" new=source ;; /cmd Go "/downloads" newtab=findexisting
..for sequential execution.
Instead, we'd need to give DOpusRT a way to send multi-line commands to Opus (instead of multiple single-line commands). It's possible but also not something that many people would benefit from (and there are already workarounds like user-commands) so we'd probably only do it if a solid case for it came up which couldn't be solved any other way.