Screencapture enhancer for Alfred App
Workflow to enhance OS X screencapture capabilities, particularly with the option to capture last captured area and naming options.
The screencapture app that ships with OS X is quite Ok, but I've always missed being able to keep capturing the same previously captured region, for example for taking screenshots of different pages, where you define a region by taking the first screenshot, and then keep taking new ones in different pages.
This workflow allows this by disabling the original OS X shortcuts and implementing the same shortcuts within the workflow. There're same caveats to install, basically manually removing the original shortcuts and manually adding the same ones to the workflow, since installing workflows does not allow you to import the defined shortcuts (see below).
In the area mode the workflow performs a normal area screenshot, and at the same time runs a custom made cli app in Objective-C that listen for mouse and keyboard events and saves the proper screen coordinates for later use. It also circumvents a few bugs from the cli screenshot app.
Additionally, the workflow works by keywords. The keywords way has the advantage of allowing to specify a custom name for the screenshot, instead of the default one.
Usage
⌘+⇧+3
to take a full screen capture, or write the keywordcapturescreen
and optionally specify a filename.⌘+⌃+⇧+3
to save a full screen capture to the clipboard, or write the keywordcapturescreen
and action it while holding control.
⌘+⇧+4
to take an area screen capture interactively, or write the keywordcapture
and optionally specify a filename.⌘+⌃+⇧+4
to save an area screen capture interactively to the clipboard, or write the keywordcapture
and action it while holding control.
⌘+⇧+⌥+4
to take a screen capture of the previously used area, or write the keywordcapturelast
and optionally specify a filename.⌘+⇧+⌥+⌃+4
to save a screen capture of the previously used area to the clipboard, or write the keywordcapturelast
and action it while holding control.
As shown in all examples, the keyword version is capable of specifying a name for the captured image.
Installation
For OS X 10.9 Mavericks, Download the alfred-screencapture-enhancer.alfredworkflow and import to Alfred 2.
For Previous OS X Versions, Download the alfred-screencapture-enhancer.alfredworkflow and import to Alfred 2.
First, go to System Preferences -> Keyboard
, there to the Shortcuts
tab, select Screenshots
in the left list and uncheck all the shortcuts on the right, as shown below.
Then install the workflow and fill the 6 shortcuts with the desired key-combos. The workflow is imported without key combos. It should look like this:
This are the recommended key-combos, the same ones disabled earlier, plus two new ones:
⌘+⇧+4
, to capture an area⌘+⌃+⇧+4
, to capture an area to the clipboard⌘+⇧+⌥+4
, to capture the last area⌘+⇧+⌥+⌃+4
, to capture the last area to the clipboard⌘+⇧+3
, to capture the full screen⌘+⌃+⇧+3
, to capture the full screen to the clipboard
After configuring the shortcuts it should look like this:
Configuration
You can configure the image format, base name, location and drop shadow (in window mode) within the workflow. This procedure is done manually by opening the workflow folder and editing the config.yml
file, the options are self explanatory, but please save a backup of the file before changing it.
In the future I'll implement the configuration within the workflow.
Changelog
- 2014-02-22 - Released