Mac Developer Library Developer


This manual page is for Mac OS X version 10.9

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • To learn how the manual is organized or to learn about command syntax, read the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Developer Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.

SCREENCAPTURE(1)          BSD General Commands Manual         SCREENCAPTURE(1)

     screencapture -- capture images from the screen and save them to a file or the clipboard

     screencapture [-SWCTMPcimswxto] file

     The screencapture utility is not very well documented to date.  A list of options follows.

     -c      Force screen capture to go to the clipboard.

     -C      Capture the cursor as well as the screen.  Only allowed in non-interactive modes.

     -i      Capture screen interactively, by selection or window.  The control key will cause the screen
             shot to go to the clipboard.  The space key will toggle between mouse selection and window
             selection modes.  The escape key will cancel the interactive screen shot.

     -m      Only capture the main monitor, undefined if -i is set.

     -M      Open the taken picture in a new Mail message.

     -o      In window capture mode, do not capture the shadow of the window.

     -P      Open the taken picture in a Preview window.

     -s      Only allow mouse selection mode.

     -S      In window capture mode, capture the screen instead of the window.

     -t      <format> Image format to create, default is png (other options include pdf, jpg, tiff and other

     -T      <seconds> Take the picture after a delay of <seconds>, default is 5.

     -w      Only allow window selection mode.

     -W      Start interaction in window selection mode.

     -x      Do not play sounds.

     -a      Do not capture attached windows.

     -r      Do not add screen dpi meta data to captured file.

     files   where to save the screen capture, 1 file per screen

     Better documentation is needed for this utility.

     To capture screen content while logged in via ssh, you must launch screencapture in the same mach boot-strap bootstrap
     strap hierarchy as loginwindow:

     PID=pid of loginwindow
     sudo launchctl bsexec $PID screencapture [options]

     A screencapture utility first appeared in Mac OS X v10.2.

Mac OS                           June 16, 2004                          Mac OS

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.