Warning, this script is unmantained since I no longer use a Mac. I have no idea if it works or not.
This is a simple Alfred script that captures screenshots directly into the Yoink app. This was inspired by the Automator workflow from the Yoink blog, and the functionality is fundamentally the same. Using Alfred however, is quite a bit faster than using Automator.
Download the .alfredworkflow file
I tried to replicate the default macOS screenshot naming and location. If you've set a custom location via:
defaults write com.apple.screencapture location ~/Path/to/Screenshots
The script will use that location. If not, it will default to ~/Desktop.
Additionally, you can set a different screenshot location for this script only via the Alfred Workflow Environment Variable screenshot_alt_dir
.
Yoink is a persistent Drag and Drop shelf utility and Alfred is a customizable Spotlight replacement that can run scripts and many other things.
⇧⌘4 is the default macOS shortcut for saving a screenshot of a selected area and ⇧⌘3 is the default for full-screen. However, you might not want to send every screenshot you take to Yoink. ⇧⌘5 for selective screenshots and ⇧⌘6 are good shortcut alternatives for triggering this workflow:
Simplify the name by removing spaces and just using the unix timestamp: