How to compress a video with Shortcuts or Raycast on a Mac
The free way is the Shortcuts app's own Encode Media action: make a shortcut that receives videos from Finder, add Encode Media with a size such as 1280×720, then Save File, and it shows up under Quick Actions when you right-click a video. Encode Media picks a resolution, not a file size, so to hit a limit such as 20 MB for Discord, have the shortcut or a Raycast Script Command call SendSize with a sendsize:// link or the sendsize command and a use such as discord.
Compress without opening the window Watch folders, clipboard, links, command line
Free: a Shortcuts Quick Action with Encode Media
Encode Media uses the Mac's own encoder and is quick. A 10-minute 1080p video at 720p is still far over most chat and email limits, because the result depends on the length, not on a target size.
- Open Shortcuts and make a new shortcut. Open its details (the i button) and turn on Use as Quick Action, with Finder ticked.
- At the top, set it to receive Media (or Files) from Quick Actions.
- Add Encode Media. Set Size to 1280×720 for a smaller file, or 1920×1080 to keep it sharper.
- Add Save File, and choose where to save (turn off Ask Where to Save to save without a question).
- In Finder, right-click a video → Quick Actions → your shortcut.
Shortcuts with SendSize: aim at a size
SendSize 1.1 can be started from Shortcuts in two ways. Both compress in the background without opening its window, with the same uses as the app.
- Run Shell Script: install the sendsize command (Settings → Automation → Install…), add Run Shell Script, set Pass Input to as arguments, and run
/usr/local/bin/sendsize compress "$@" --preset discord. The full path matters, because shortcuts do not always see the same PATH as Terminal. - Open URLs: build a link like
sendsize://compress?path=…&preset=discord, with the file's path from Get Details of Files → File Path, encoded with URL Encode, and open it with Open URLs. This needs only the app.
Raycast
Raycast has no video compressor of its own, but it runs Script Commands: small shell scripts with a title that you can run from the Raycast window. Make one with Create Script Command, choose Bash, and have it ask Finder for the selected files and pass each to sendsize compress with the use you want. The full script, ready to paste, is on the automation page.
sendsize compress ~/Movies/clip.mov --preset discord
Which use to put in the shortcut
Results go where SendSize's Output setting says; by default that is a new folder next to the video, named “… (SendSize)”. A link never replaces originals, even if Output is set to do so.
- discord for Discord (under 20 MB on a free account), gmail or outlook for email, whatsapp for WhatsApp.
- compress to make any video smaller with the quality first, without a target.
- video-to-gif to turn short clips into looping GIFs.
- Or a size of your own on the command line:
--max-mb 8.
What to keep in mind
- Shortcuts' and Raycast's menus change between versions; the link format and the command options do not.
- The free version of SendSize compresses 5 files at a time, also from Shortcuts, Raycast and Terminal. The $19.99 license removes the limit.
- A long video aimed at a small size will look soft. Send a shorter clip or a link when the results list says it had to go very low.
Questions
Can Shortcuts compress a video on a Mac?
Yes, with the Encode Media action. It lowers the resolution but does not aim at a file size.
Can Raycast compress videos?
Not by itself. A Raycast Script Command can call a compressor such as the sendsize command or FFmpeg on the files selected in Finder.
Does the shortcut open the SendSize window?
No. Links and the sendsize command work in the background; with a link, SendSize posts a notification when the batch is done.
Sources
- Discord: File Attachments FAQ (checked November 16, 2026)
Do it with SendSize
Compress without opening the window
PresetWatch folders, clipboard, links, command line
- Watch folders and the clipboard: turn them on in the app (license).
- Links and the sendsize command: Settings → Automation.
- The results land where a normal batch would put them.
Free for 5 files at a time. $19.99 once for any number, on 3 Macs.