Open App
Open App
Section titled “Open App”Type: open-app · Package: Desktop Activities v1.0.0 · Output: number
Launches an application or Windows process. It is usually the first step of a desktop automation: open the program that you are going to automate. Returns the PID (process identifier). You can optionally wait for the process to finish before continuing.
How it works
Section titled “How it works”Runs the path program, optionally with arguments (args) and a working directory (workingDir). By default, it continues the flow immediately (no waiting). If you put waitForExit = true, the flow stops until the process finishes (useful for command line tools).
After opening the app, a Win Attach usually follows to connect to your window.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
path | expression | Path to the executable or command to launch. Ex: C:/ERP/erp.exe. |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
args | expression | Command line arguments. |
workingDir | expression | Work directory. By default, that of the executable. |
waitForExit | boolean | Wait for the process to finish before continuing. By default false. |
timeout | expression | Maximum waiting time in ms if waitForExit = true. 0 = no limit. |
Output
Section titled “Output”Returns a number with the PID of the launched process.
Example
Section titled “Example”Open App path = "C:/ERP/erp.exe" → output: pidWin Attach selector = (ventana "ERP — Login") └─ body: ... automatizar el ERP ...Related activities
Section titled “Related activities”- Win Attach — connect to the open app window.
- Win Close — close the application when finished.