Created
October 5, 2018 09:34
-
-
Save elpsk/80d5f26a84d1f124bf55cb8c1ec4affa to your computer and use it in GitHub Desktop.
MacOS programmatically take screenshot of a particular windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ /usr/sbin/screencapture | |
-r | |
-l$(osascript -e 'tell app "QuickTime Player" to id of window 1') | |
/Users/pippo/Desktop/test.png | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment