Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Is there some command line utility to create a screenshot of the my screen and store it as png? (Preferably one in the system, without need to install anything new)

share|improve this question
    
May I ask why you need a command line utility instead of using the godly shortcuts for taking screen shots in OS X? –  XAleXOwnZX Oct 22 '11 at 19:27
    
@XAleXOwnZX: I'd like to automate the process. I want to have screenshot per minute for 'screenshot journal'. (Like TimeSnapper, but on Mac). –  Peter Štibraný Oct 22 '11 at 20:02
    
in which case you can make an automator script that presses the keys –  XAleXOwnZX Oct 22 '11 at 20:48
    
@XAleXOwnZX: pressing the keys may interfere with my work. Simple shell script works great (gist.github.com/1306977), and I've added resizing to smaller image to save some space (using ImageMagick). –  Peter Štibraný Oct 23 '11 at 7:10

1 Answer 1

up vote 7 down vote accepted

It sounds like you're looking for the command screencapture, which, according to its man page, is to "capture images from the screen and save them to a file or the clipboard".

It's been a standard part of OS X since 10.2.

share|improve this answer
    
Thank you very much! Exactly what I was looking for. –  Peter Štibraný Oct 22 '11 at 19:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.