Jump to content
ramiro.araujo

Screencapture enhancer Workflow

Recommended Posts

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 keyword capturescreen and optionally specify a filename.
  • ⌘+⌃+⇧+3 to save a full screen capture to the clipboard, or write the keyword capturescreen and action it while holding control.

capturescreen.png

  • ⌘+⇧+4 to take an area screen capture interactively, or write the keyword capture and optionally specify a filename.
  • ⌘+⌃+⇧+4 to save an area screen capture interactively to the clipboard, or write the keyword captureand action it while holding control.

capture.png

  • ⌘+⇧+⌥+4 to take a screen capture of the previously used area, or write the keyword capturelast and optionally specify a filename.
  • ⌘+⇧+⌥+⌃+4 to save a screen capture of the previously used area to the clipboard, or write the keyword capturelast and action it while holding control.

capturelast.png
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.
preferences.png
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:
no-shortcuts.png
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:
shortcuts.png

Configuration

 

You can configure the image formatbase namelocation 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.

 

Source Code

 

Clone or Fork the Workflow: https://github.com/ramiroaraujo/alfred-screencapture-enhancer-workflow

Changelog

  • 2014-02-22 - Released

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...