Skip to content

Instantly share code, notes, and snippets.

@m4p
Created October 27, 2025 18:32
Show Gist options
  • Save m4p/bb46b83582b9d0d69901f180816eb3a2 to your computer and use it in GitHub Desktop.
Save m4p/bb46b83582b9d0d69901f180816eb3a2 to your computer and use it in GitHub Desktop.
#!/bin/zsh
# Download this shortcut: https://www.icloud.com/shortcuts/dbb5f4547322460698a35b6ed5d4f99b
echo "$*" | shortcuts run "On-Device AI" -i - -o /dev/stdout --output-type public.html > /tmp/appleintelligencecli.temp.html
textutil -convert txt /tmp/appleintelligencecli.temp.html -stdout
rm /tmp/appleintelligencecli.temp.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment