Home

Awesome

Alfredinary

Alfred 👉 Take Screenshot 👉 Cloudinary 👉 Clipboard

Features

This workflow provides this in a single command:

  1. Take screenshot on your mac
  2. Upload it to Cloudinary
  3. Get back the https image link in your clipboard
  4. Paste and use! <kbd>cmd ⌘</kbd>+<kbd>V</kbd>

Why?

Install

  1. Install the npm package
npm install -g alfredinary
  1. 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. Edit PATHNAME AND FILENAME 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.

  1. 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

  1. Open up Alfred and type "Alfredinary". Or just begin typing "Alfredi..", or "Alf..." + <kbd>Enter</kbd>
<img width="701" alt="Alfred" src="https://cloud.githubusercontent.com/assets/307676/19521683/c3a6a33c-9614-11e6-9b4b-b537807d1135.png">
  1. Take a screenshot as usual, mark section of your screen or use <kbd>Space</kbd> to select the current window.

  2. Alfredinary now uploads that screenshot to your Cloudinary account, and you will get back a https image link.

  3. <kbd>cmd ⌘</kbd>+<kbd>V</kbd>

Cloudinary