Alfred Clipboard Teleporter
An Alfred workflow to copy the most recent image from Alfred clipboard into a folder hosted by a local webserver. This workflow is particular to one of my daily routines. You might want to evolve this workflow to your custom needs or reuse parts of it to automate your daily life!
Install https://www.alfredapp.com/
Enable Alfred workflows
Enable clipboard history for Images on Alfred
OPTIONAL - Install Web Server for Chrome . You will copy the image from the clipboard to a folder managed by this webserver
Some more setup instructions
👇️ Following steps should be run after the workflow is installed
Install Pillow module for Python 2.7 . This takes care of converting *.tiff file to *.jpeg
Alfred currently works with Python 2.7 only. So, I installed the Python module using in the following way and into the workflow folder
Once the workflow is created, navigate to the workflow folder in Finder
Use the script python2 -m pip install --target=. Pillow
to install the package
Once installed, the folder structure would look like
Set up the followig environment variables
db_name
should be clipboard.alfdb
db_path
should be Library/Application Support/Alfred/Databases
dest_dir
should be the target folder to place your image
I have the workflow set up to be triggered on receiving \\pi
keystroke or a hotkey
When the workflow is triggered, it will copy the most recent image from Alfred's clipboard and copy it to the dest_dir