All templates
Desktop AutomationBeginner
Run an Application
Robomotion•Updated 9 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).
More desktop automation templates
See all 11 →- Add Datetime to File NamesRenames every file in a directory by appending the current date to its name. A quick way to version artefacts, snapshots, or export batches.
- Copy FilesCopies every file from a source directory into a destination, with optional overwrite. Demonstrates how to enumerate files and drive file-system operations from a subflow.
- Delete Files of Specific Size RangeScans a directory and deletes files whose size falls inside a min/max range. Useful for pruning oversized logs or clearing tiny scratch files.
- Find and Delete Empty FilesWalks a directory, locates zero-byte files, and deletes them in a single pass. Handy for cleaning up broken export folders.
- GUI Testing CalculatorDrives the Windows Calculator through native UI automation to validate arithmetic. A concrete template for end-to-end GUI testing of desktop apps.
- Open a FolderLaunches the system file explorer pointed at a given path. Minimal template demonstrating the Application.Launch node.