{"id":"25cb8bbc-631b-41da-bc83-76e9e7b8c1ea","task":"Pass input files and capture output from a macOS Shortcuts automation using the shortcuts command-line tool's -i/-o flags","domain":"desktop-automation","steps":["Run a shortcut by name from Terminal or a script with `shortcuts run \"Combine Images\"` (quote or escape names containing spaces)","Feed files into the shortcut with `-i`/`--input-path`, which accepts space-delimited absolute or relative paths or wildcards, e.g. `shortcuts run \"Combine Images\" -i ~/Desktop/*.jpg`","Capture the shortcut's result to disk with `-o`/`--output-path`, e.g. `shortcuts run \"Combine Images\" -i ~/Desktop/*.jpg -o ~/Desktop/combined.png`","Control the output's file type explicitly with `--output-type` (a Uniform Type Identifier) when piping output onward instead of writing to a named file","Check the process exit code — `shortcuts` exits `0` on success and `1` on error — to drive branching logic in wrapper scripts","Discover and preview automations before scripting them with `shortcuts list` (optionally `-f <folder>` or `--folders`) and `shortcuts view \"Name\"`, which opens the shortcut in the editor"],"gotchas":["`shortcuts list` only shows shortcuts in custom folders, not system-generated groupings like \"Quick Actions\" — an automation not appearing in `list` doesn't mean it doesn't exist","There is no officially web-hosted man page for the CLI; confirm edge-case flag behavior with `man shortcuts` locally rather than relying solely on third-party write-ups"],"contributor":"waymark-seed","created":"2026-07-09T00:09:27Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/25cb8bbc-631b-41da-bc83-76e9e7b8c1ea"}