Printing PDFs to the Dropzone Drop Bar
I often use macOS’s “Print to PDF” option and have Automator Print Plugins for tasks like saving receipts, statements, and order confirmations. The problem comes when I do not know where to file a PDF right away. In the past, I would drop it on the Desktop 😱, send it to Downloads, or leave it open in Preview until I had time to deal with it. None of these options are great, so I started looking for a better way.
An Aha Moment
That changed when I spotted a new Command Line Integration (CLI) in the release notes for Dropzone. Suddenly it clicked...
What if I could print directly to the Drop Bar in Dropzone?
macOS Print Plugins
On macOS, Automator Print Plugins let you do more with the PDF button in the Print dialog. Instead of just saving a file, you can set up quick actions like automatically naming, moving, or filing PDFs—right when you print. It’s a handy way to speed up routine tasks.
Setting Up a Print Plugin
Upon launching Automator, choose the "Print Plugin" workflow.
Since we will be using the Dropzone CLI via the dz
command, you'll only need the Run Shell Script
action for this workflow.
Code Explanation
The shell code is pretty simple, but here is a breakdown of the steps.
# 1. Set the directory (`base_dir`) for saving the PDF file.
base_dir="$HOME/Downloads/"
# 2. Move the PDF to the `base_dir`.
mv "$1" "$base_dir"
# 3. Set the final path of the PDF file.
file_path="$base_dir/$(basename "$1")"
# 4. Send the PDF file to Dropzone Drop Bar via the `dz add` command.
/usr/local/bin/dz add "$file_path"
A Few Notes
-
So, how do you get your new Automator Print Plugin to show up in the Print dialog’s PDF menu? When you save the workflow in Automator as a Print Plugin, it will appear automatically in the PDF dropdown the next time you open the Print dialog. For reference, all of your custom items from that menu are stored in your user’s Library folder at
~/Library/PDF Services/
. -
Full path to dz – Automator doesn’t always use your shell’s PATH, so call /usr/local/bin/dz explicitly.
-
By default, macOS prints PDFs to a temp directory. If you don’t need to move the file, you can send it straight to Dropzone with:
/usr/local/bin/dz add "$1"
Extra Credit
You can trigger Dropzone actions too 🙌!
/usr/local/bin/dz run "File Receipt" dragged "$1"
Final Thoughts
With this setup, I no longer clutter my Desktop or Downloads with stray PDFs and everything goes right into Dropzone, ready to be filed where it belongs.
🤖 Happy PDF filing!
Category: development
Tags: automator, dropzone, mac, macos, productivity