macaroni

app condition

Description:
The app condition checks to see if an application is running and/or if it’s in focus, by checking the window title and/or process name.

Parent: all, any, condition, conditions, none, not , wait

Value (simple form): string specifying process name and/or window title (checks if either match, and if running and in focus)
Value (key/value form):

# simple form
app: (string)

# simple example
app: notepad.exe

# key/value form
app:
  process: (string, required if `title` not supplied)
  title: (string, required if `process` not supplied)
  focus: (boolean, optional)
  running: (boolean, optional)

# key/value example
app:
  process: notepad.exe
  title: favorites.txt
  running: false

EXAMPLE

# saves the current file being edited in notepad
commands:
- examples:
  - Save
  - Save that
  conditions:
  - app: notepad.exe
  triggers:
  - phrase: save [that]
  execute:
  - sendKeys: '{ctrl-s}'

Status: ✅ IMPLEMENTED