Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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? – AMomchilov 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 – AMomchilov Oct 22 '11 at 20:48
@XAleXOwnZX: pressing the keys may interfere with my work. Simple shell script works great (, and I've added resizing to smaller image to save some space (using ImageMagick). – Peter Štibraný Oct 23 '11 at 7:10
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


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.