How to Automate Your Clipboard with URL Schemes
Your clipboard is the most-used data transfer mechanism on your Mac, yet it has limited automation support by default. SaneClip exposes URL schemes and App Intents so Shortcuts, Alfred, Raycast, and scripts can open history, search, copy, paste, or clear with confirmation.
Option 1: The Hard Way (Scripts)
- 1 Write a background script that polls
pbpasteevery second. - 2 Parse the clipboard content yourself and fire HTTP requests.
- 3 Handle failures, retries, and authentication. Maintain the script forever.
Option 2: The Sane Way (SaneClip)
- ✓ URL Schemes: Control SaneClip from Shortcuts, Alfred, Raycast, or scripts.
saneclip://paste?index=0,saneclip://search?q=keyword,saneclip://copy?text=Hello. - ✓ Siri Shortcuts: Seven App Intents, including Get Clipboard History, Search Clipboard and Paste Snippet. Build whole workflows in the Shortcuts app.
- ✓ Safety: Destructive URL-scheme commands require confirmation, and Touch ID protection applies when history lock is enabled.
Or start the free 14-day trial, no card needed. Needs macOS 14 or later on Apple silicon.
Questions
Which URL commands does SaneClip support?
history, search?q=, paste?index= (0 is the newest clip), copy?text=, snippet?name=, export and clear, each after saneclip://. Clear always asks first.
Do URL commands respect the Touch ID lock?
Yes. With the Pro Touch ID lock on, commands that need confirmation ask for Touch ID or your Mac password first.
Can a URL fill in snippet placeholders?
Yes. Add each value as a query item, for example saneclip://snippet?name=Reply&customer=Sam.