Skip to main content

Module shortcuts

Module shortcuts 

Source
Expand description

Run a Shortcuts workflow by name through the shortcuts binary.

shortcuts run is the documented entry point. The shortcuts binary is invoked with the workflow name as a single positional argument. A missing binary surfaces as execution_failed rather than an unsupported error: the binary is part of macOS but a process running in a sandboxed context may still see it as absent.

Structs§

ShortcutsReport
What shortcuts run returned.

Functions§

run
Run shortcuts run <name> and wait for completion. The process is killed after APPLE_EVENT_TIMEOUT_SECS (the same timeout the macOS backend applies to osascript).