akmassey / snapclip

Dr. Drang's SnapClip, modified for Alfred

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dr. Drang’s SnapClip, modified for Alfred

I’ve modified Dr. Drang’s SnapClip for use with Alfred. You should start by reading about his use with Keyboard Maestro.

Installation

Dr. Drang’s script requires access to four non-standard utilities, all of which must be installed for this to work properly.

First, download Pashua. You will also need to install the Pashua bindings for python. I’ve installed this in my ~/src/python folder.

Second, you’ll need Pillow, which can probably just be installed with pip install pillow or similar.

Third, you’ll need Alec Jacobson’s impbcopy. Dr. Drang is hosting a binary that you might be able to just download, and I’ve created a separate repository with the source code.

Fourth, you’ll need OptiPNG, which is available on Homebrew with brew install optipng.

With those preliminaries out of the way, you’ll also need to install the Alfred Workflow in this repository. It has a hard dependency on snapclip.py, which is also in this repository. If you put everything in a repository at ~/src/python/snapclip/ then it should “just work.”

Roadmap

Several things make this script less portable, but the two that stand out are Pashua and OptiPNG. Neither is strictly necessary. Pashua could be replace by tkinter, which is available by default on most python installs. OptiPNG could simply be disabled or only used when present. These are things I probably won’t do, but I would be happy to merge.

About

Dr. Drang's SnapClip, modified for Alfred


Languages

Language:Python 100.0%