Awesome
Alfredinary
Alfred 👉 Take Screenshot 👉 Cloudinary 👉 Clipboard
Features
This workflow provides this in a single command:
- Take screenshot on your mac
- Upload it to Cloudinary
- Get back the https image link in your clipboard
- Paste and use! <kbd>cmd ⌘</kbd>+<kbd>V</kbd>
Why?
- Quickly share screenshots
- No need to store the files on your computer if you don't want.
- Https image links
- Secure
- All the benefits from Cloudinary. Image management, image management transformations (ex via URL parameters), cloud storage, fast delivery via CDN.
Install
- Install the npm package
npm install -g alfredinary
- Create env-file. When installed, open up Alfred Workflows and right click to open the workflow directory in Terminal/finder. Create an
.env
file in the project root. You can rename.env-example
to.env
. EditPATHNAME
ANDFILENAME
as you wish.
CLOUDNAME="XXXXX"
APIKEY="XXXXXXXXXXXX"
APISECRET="XXXXXXXXXXXX"
PATHNAME="/users/myusername/Pictures/screenshots/"
FILENAME="screenshot.jpg"
FOLDERNAME="/alfred"
Get cloudname, apikey and apisecret from your account on Cloudinary. Don't have an account? Get one. It's free.
- Edit temp location (pathname and filename) of the screenshot on disk. The default is
/users/${username}/Pictures/screenshots/screenshot.jpg
Edit the yellow bash script in the image below.
<img width="931" alt="Workflow" src="https://cloud.githubusercontent.com/assets/307676/19521747/1cf6bc2e-9615-11e6-96d5-79ea022918dc.png">Use
- Open up Alfred and type "Alfredinary". Or just begin typing "Alfredi..", or "Alf..." + <kbd>Enter</kbd>
-
Take a screenshot as usual, mark section of your screen or use <kbd>Space</kbd> to select the current window.
-
Alfredinary now uploads that screenshot to your Cloudinary account, and you will get back a https image link.
-
<kbd>cmd ⌘</kbd>+<kbd>V</kbd>