- 0 Comments
- 0 Recommendations
Grab 'impossible' screenshots
Whether you’re remotely trying to help a friend troubleshoot their system or putting together a training document for your office, sometimes you might need to take a picture of your screen. Mac OS X has some excellent screenshot tools available, both built-in and third-party. In case you’re not familiar, or if you just need a brief refresher, here’s a summary:
However, none of these tools will help you get certain screenshots, such as this one:

That’s a shot of the login window (in Fast User Switching mode) and a seemingly impossible picture to take. So how’d I do it? The answer is simple, though it does require a second Mac with the ability to access the first Mac over a network.
OS X includes a nice command-line screen capture utility named, simply enough, screencapture. While there’s not a ton of documentation on this program, man screencapture will give you the basic options. Once you’ve used ssh to connect to the Mac whose screen you wish to capture, you need to execute the screencapture command with root privileges. You can also specify some of the command line arguments, as shown in the man page. For instance, here’s how I captured the login window:
$ cd ~/Desktop
$ sudo screencapture -ttiff loginwindow.tiff
The first line just switches me to the Desktop folder of the user that I logged into via ssh. The second line actually takes the screenshot; I’ve used -ttiff to set the type to TIFF ( -t is the ‘set type’ option, and tiff is the type, with no added spaces!), and then specified the name for the file. If you don’t want to hear the camera-clicking sound on the remote Mac, use the -x option.
That’s really all there is to it—other than realizing that the picture you just took is saved on the second Mac, not the target one. To get your picture over to the source Mac, which is probably where you want it, you can use scp, a secure copy program. After you disconnect from the remote Mac, just use something like this to copy the screenshot across:
scp user@remote_mac_address:/path/to/screenshot /local/path/to/save
For example, in my case, I used this command:
scp robg@192.168.1.10:/Users/robg/Desktop/loginwindow.tiff ~/Desktop/loginwindow.tiff
You might think this trick is only useful for grabbing login window screenshots, but that’s not the case. It could also be used in a game that locks out the keyboard shortcuts—start the game, ssh in from another Mac, and then grab the screenshot when you reach the spot in the game that you’d like to capture. Another possibility is for checking on a remote Mac that you have running some large task—a backup or a huge download, for instance. Yes, there are GUI ways of connecting and watching the screen, but you might find it faster to use ssh to connect, grab a screenshot, and then copy it back with scp to see exactly where the Mac is at in the process.
- Recommend? 0 YES 0 NO
- 0 Comments






"Grab 'impossible' screenshots" Comments