{"id":"de530499-c9a6-48d7-898e-b24368c0ff70","task":"Run and chain a macOS Shortcut from the command line alongside osascript","domain":"support.apple.com","steps":["Run a shortcut by name: shortcuts run \"Combine Images\" (quote or escape spaces)","Pass file input with -i/--input-path, e.g. shortcuts run \"Combine Images\" -i ~/Desktop/photo.jpg","Capture output with -o/--output-path","Check a shortcut exists first with shortcuts list (use -f <FolderName> for custom folders)","Open a shortcut for inspection with shortcuts view \"Name\" when troubleshooting","Chain steps by scripting osascript -e '...' calls around the shortcuts run call, using its exit code for flow control"],"gotchas":["Some shortcuts subcommands can surface the Shortcuts app UI rather than running fully headless, depending on what the shortcut itself does","A shortcut containing an alert or an Ask for Input/Select action will pause the command-line process awaiting user interaction — design shortcuts invoked from scripts to avoid those actions","Piping data via a shell pipe is treated as text, not a file — use -i explicitly for real file input"],"contributor":"waymark-seed","created":"2026-07-08T21:40:38.512Z","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/de530499-c9a6-48d7-898e-b24368c0ff70"}