Get Version


→ ‘capture’

What is it?

Capture is a tool for making a full size screenshot of your Mac OS X desktop. It uses RubyCocoa and the new CGWindow API of Mac OS X Leopard to capture the desktop in a fast and efficient manner.


sudo gem install capture


$> capture [options]

By default ‘capture’ will save the desktop screenshot to a file named ~/capture.jpg. You can set a target filename using the -o parameter.

Additionally, you can specify a delay parameter via ‘-d X’, where ‘capture’ will delay the creation of the screenshot X seconds so that you may hide or re-arrange windows.

During the capture, the desktop screen will fade in and out to provide feedback of the screen capture taking place.


The trunk repository is svn:// for anonymous access. RDocs API is also available.


Mac OS X Leopard (ie 10.5.x). RubyCocoa (Mac OS X Leopard includes RubyCocoa by default).


This code is free to use under the terms of the MIT license.


Comments are welcome. Send an email to Marcus Crafter


Special thanks to DSevilla for the camera image used in the project licensed under creative commons.

Marcus Crafter, 19th January 2008
Theme extended from Paul Battley