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://rubyforge.org/var/svn/capture/trunk 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