Tuesday, January 13, 2009

Screenshot DVD OSX

Apple have disabled the usual command-shift-3 etc options to take a screenshot when you have DVD player running. If its your DVD of a home movie, or you want to screenshot something else and you just happen to have DVD player open, then this is rather inconvenient.

Fortunately Apple have also given us the ability to launch the screenshot utility from the terminal command line.

At its simplest you just do

    screencapture -i ~/Desktop/dvd.png
There are a ton of options. The basic syntax is "screencapture [-icmwsWx] [files]". Note that the switches are case sensitive
    -i capture screen interactively, by selection or window
    control key - causes screen shot to go to clipboard
    space key - toggle between mouse selection and window selection modes
    escape key - cancels interactive screen shot
    -c force screen capture to go to the clipboard
    -m only capture the main monitor, undefined if -i is set
    -w only allow window selection mode
    -s only allow mouse selection mode
    -W start interaction in window selection mode
    -x do not play sounds
    -S in window capture mode, capture the screen not the window
    -C capture the cursor as well as the screen. only in non-interactive modes
    -t image format to create, default is png
    files where to save the screen capture, 1 file per screen

You can do "man screenshot" to get more information.

No comments: