I'm wondering if there is any way to launch a DO script WITHOUT DO actually running?
What I'm thinking is that I use DO now to synchronize my working project files from my laptop to my personal server once a day. It's obviously easy enough to do manually with the synchronization tool, but it would be even better if I could schedule that. So, if I could write a script to automate that, would there be a way to launch it via Windows Task Scheduler? As in: can I feed the script to DO, have DO launch, do the sync, and then exit?
You can use DOpusRT.exe to run Opus commands or scripts from outside Opus.
Note that it does not wait for the command to finish, so if you want to do one thing and then another, you need to create a User Command of Script Command which does everything, and then trigger that via DOpusRT.exe.
That said, I think there are better tools for the job of automated background synching. Do you really want the Opus UI appearing out of nowhere and doing things (and then exiting the program, which you might be using at the time?) while you may be at the PC?
Windows has a built-in Robocopy command line tool which you can probably use to do the same thing if you want it all automated on a schedule. Other tools dedicated to the job will do more in terms of logging and notifying you if there is an error.
Horses for courses. Opus is primarily designed for interactive use, although it can be turned into an automated tool if you really want to.
Thanks Leo! I actually was unaware of Robocopy, but reading through the docs now I think it would be perfect. Although it wouldn't be a problem to have DO popping up since I could schedule it for off hours, it's certainly a bit of an unconventional usage and as you say, there are probably better options. But in any case, thanks for providing the info because I didn't know about DOpusRT.exe either Always good to learn new things!