Mac Screenshot of a Specific Window without Using the Mouse/Click

Posted by huyqt on Super User See other posts from Super User or by huyqt
Published on 2010-01-13T18:45:29Z Indexed on 2010/03/21 13:01 UTC
Read the original article Hit count: 382

Filed under:
|
|

Hello,

I've been researching for a day or two but can't find a method to take a screenshot of a specific window (possibly the only window) open at a specific time using an Apple script.

Currently I have the script execute

screencapture -T1 ~/Desktop/screenshot.png

But what I want is really

screencapture -wx -T1 ~/Desktop/screenshot.png

But when I use -wx, it waits for a mouse click on the window.

Are there any utilities, built in or not, that will allow me to do this?

Thank you so much!

(I'm sorry if this belongs on Stack Overflow, can someone move it if it does. It kind of overlaps both super user and stack overflow.)

Edit: The windows alternative that I'm looking for on a Mac is the keyboard shortcut:

Alt + PrntScrn

© Super User or respective owner

Related posts about mac

Related posts about screenshot