How to capture a window using the command line
===

The `screencapture` command doesn't seem to be able to capture a specific window when it is invoked from the command line, but is able to do it when it is used interactively whit shift+command+4.

How can I capture a window from a script ?

