Get the osx screencapture terminal tool to capture both screens

The terminal application is screencaptureideal and takes a screenshot, as you would expect, but when you connect two screens to it, you only need a screenshot of the main window.

screencapture screenshot.png

But if you do CMD + Shift + 3, it takes both screens and saves them as two screenshots.

There is a parameter on the man page -mthat says Only capture the main monitor, but as you can see, I am not using this parameter, and then you assumed that it would occupy both screens, but not.

https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/screencapture.1.html

How can I make a screencapture take both screens or program it to take a screenshot of the second screen?

+3
source share
1 answer

Found a solution after 3 minutes, but thought that I would share the information, as others also need it :)

If you have multiple screens, you will have to transfer more file names, so if you have two screens, you would do:

screencapture screen1.png screen2.png

Functionality is hidden, this message, if you carefully read!

files   where to save the screen capture, 1 file per screen
+8
source

All Articles