4

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)

  • May I ask why you need a command line utility instead of using the godly shortcuts for taking screen shots in OS X? – Alexander 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 – Alexander 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
7

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .