Runs a Shortcuts shortcut by name and returns any output.
Executes the shortcut in the background via the shortcuts CLI tool.
If the shortcut produces output (via a "Stop and Output" action), the
Promise resolves with that string. If the shortcut produces no output,
the Promise resolves with null. The Promise rejects if the shortcut
cannot be found or exits with a non-zero status.
Parameters
name: string
The exact display name of the shortcut to run.
Returns Promise<string|null>
A Promise resolving to the shortcut output string, or null if the shortcut produced no output.
Runs a Shortcuts shortcut by name and returns any output. Executes the shortcut in the background via the
shortcutsCLI tool. If the shortcut produces output (via a "Stop and Output" action), the Promise resolves with that string. If the shortcut produces no output, the Promise resolves withnull. The Promise rejects if the shortcut cannot be found or exits with a non-zero status.