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

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -