Git Product home page Git Product logo

alfredinary's Introduction

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! cmd โŒ˜+V

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

  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.

Workflow

Use

  1. Open up Alfred and type "Alfredinary". Or just begin typing "Alfredi..", or "Alf..." + Enter

Alfred

  1. Take a screenshot as usual, mark section of your screen or use Space 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. cmd โŒ˜+V

Cloudinary

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.