OSX shell command for screenshot of the active window, or xwininfo equivalent -


i looking osx shell command equivalent of linux's scrot -u, takes screenshot of active window (please note automated script shouldn't prompt user click on desired window @ every screenshot).

a possible alternative osx equivalent of xwininfo, gives coordinates , dimensions of desired window, use automated crop on full screenshot.

thank you.

quickgrab makes easy captures current active window without worrying window id.

you use this:

$ sleep 2 ; ./quickgrab -file ~/desktop/screenshot-`date '+%y%m%d-%h%m%s'`.png 

if use binary this pr, capture active chrome window.


Comments

Popular posts from this blog

java - unable show chart in xls document using jasper reports -

java.lang.RuntimeException: Could not generate dummy secret at sun.security.ssl.RSAClientKeyExchange.<init> -

javascript - How to change image src on success AJAX -