All templates
Desktop AutomationBeginner
Run an Application
Robomotion•Updated 6 months ago

Overview
Starts a desktop application by executable path — the simplest form of process orchestration in Robomotion.
Run an Application
Before automating any tasks on your desktop, you have to launch the appropriate application that will perform them. Robomotion allows you to launch virtually any application or file using the "Run Application" action.
What Run an Application can do
- Build Desktop Path (
Core.Programming.Function) — setsmsg.desktop_folder_pathto<$Home$>\Desktop. - Input Dialog titled
Run an application, messageSelect the app you would like to run.., defaultnotepad.exe→msg.selected_file. - Run App (
Core.Process.StartProcess,optBackground: true,continueOnError: true) —inFilePath: msg.selected_file→msg.app_process_id, thenCore.Flow.Stop.
Behind the scenes
- There's no cancel guard — if the dialog returns an empty path,
Core.Process.StartProcesswill fail, butcontinueOnError: truelets the flow still reachCore.Flow.Stopcleanly. optBackground: truedetaches the launched process, so closing Robomotion doesn't kill the application;msg.app_process_idis captured for any downstream automation that wants to attach to it.msg.desktop_folder_pathis computed but unused by the launch itself — it's a convenience value that can be surfaced in future variants (e.g. as the dialog's starting folder).