Screenshots with Alfred

Taking screenshots with Alfred
This was an extension that a user requested the other day so I thought I would throw something together really quick. It’s a simple extension that allows you to take screenshots with Alfred using the screencapture application, and passing a few parameters to it. These include just the very basic functions including:
1. Screenshot, saved to desktop as png. (Just type ‘ss’)
2. Screenshot, saved to clipboard. (Type ‘ss c’)
3. Screenshot (selected area), saved to desktop as png. (Type ‘ss i’)
4. Screenshot (selected area), saved to clipboard. (Type ‘ss ic’ or ‘ss ci’)
The ‘i’ stands for interactive, which gives you a crosshair for you to select the area that you wish to capture. The ‘c’ stands for clipboard which obviously copies the screenshot to the clipboard as opposed to creating a new image on the desktop.
Enjoy.