Screenshot Hacks for Mac OS X
Pages: 1, 2, 3
Using screencapture in the Terminal App.
The Terminal application comes with a command-line screen capture utility known as screencapture.
This utility provides capabilities similar to those of Grab. To use it, invoke the Terminal window and type screencapture to see the various options supported:
screencapture
screencapture: illegal usage, file required if not going to clipboard
usage: screencapture [-icmwsWx] [file] [cursor]
-i capture screen interactively, by selection or window
control key - causes screen shot to go to clipboard
space key - toggle between mouse selection and
window selection modes
escape key - cancels interactive screen shot
-c force screen capture to go to the clipboard
-m only capture the main monitor, undefined if -i is set
-w only allow window selection mode
-s only allow mouse selection mode
-W start interaction in window selection mode
-x do not play sounds
file where to save the screen capture
To capture the entire screen, type:
screencapture imagefilename.pdf
The image will be saved as imagefilename.pdf.
To capture the screen interactively, type:
screencapture -i imagefilename.pdf
and:
- Press the Control key to copy the screen to the clipboard (and Command-V to paste the captured image into your application), or
- Press the Space key to toggle between capturing a window (Figure 12) and a region (Figure 13).
|
|
|
|
Wrapping Up
As you can see, there are many options in Mac OS X for capturing images from your screen and saving them to your hard disk. For most tasks, the free utility Grab or enabling screencapture in the Terminal application should suit your needs. But if you want that professional touch, or are interested in audio/video capture, then take a look at the $49 version of Snapz Pro X.
Wei-Meng Lee (Microsoft MVP) http://weimenglee.blogspot.com is a technologist and founder of Developer Learning Solutions http://www.developerlearningsolutions.com, a technology company specializing in hands-on training on the latest Microsoft technologies.
Derrick Story is the author of The Photoshop CS4 Companion for Photographers, The Digital Photography Companion, and Digital Photography Hacks, and coauthor of iPhoto: The Missing Manual, with David Pogue. You can follow him on Twitter or visit www.thedigitalstory.com.
Return to Mac DevCenter.
You must be logged in to the O'Reilly Network to post a talkback.
Showing messages 1 through 38 of 38.
-
Grab utility on Mac OS X Tiger
2005-05-02 13:25:22 mindplant [Reply | View]
Everytime I take a screen capture it creates it as a
.png file is there any where thatI can
change this preference to create it as a PDF or
.tiff file?
-
screencapture
2005-01-14 10:48:42 ph1r3d09 [Reply | View]
does anyone know, if it is possible, how to change the file format from the command line?
I realize this can be done through the gui using the export function in preview. However, I'd like to automate a web-accessable screenshot using a shell script launched via a cron job. So, I'd prefer a format with a typically smaller memory footprint than PDF to keep the bandwidth requirements down. Also, I'd prefer a format easily viewed by most browsers, such as jpg, png, or gif So, my question is, does anyone know how to change the file format for the screencapture command? can it even be done? Used to be able to change the preferred format in puma.
I can actually roll my own in java, but, i was wondering if anything already exsisted in Jaguar or greater.
-
online Safari screenshot generator
2005-01-12 07:18:18 lixlpixel [Reply | View]
i used the
screencapture
utility hooked up to PHP and Applescript to build a Screenshot Generator where you can load your Website in either Safari or MacIE and have a Screenshot of your Site ready to download.
There is a short explanation on how to set up such a site too...
-
Possibility to change paper size in "Save as PDF..." - Dialog?
2003-09-07 16:35:44 anonymous2 [Reply | View]
Is there a posibility to get a large HTMLSite to one -piece-PDF by changing the paper size or somewhat? Just to watch the PDF onScreen without these terrible breaks?
-
One more built-in screen capture in Jaguar
2003-08-26 07:49:27 anonymous2 [Reply | View]
...skimmed the article, hope I'm not repeating with the following:
Cmd-Shift-Spacebar-4
...will turn your cursor into a camera. As you scroll over windows that are open they will turn blue edge-to-edge (even if it's patially obscured). Click and it snaps a picture of the window -- no more bringing to front and trying to position crosshair perfectly. Cheers.
-
Yet another alternative - SnapNDrag
2003-07-02 12:10:30 anonymous2 [Reply | View]
Pardon the shameless plug - SnapNDrag is a simple wrapper around the commandline tool. It does not add functionality but it does enhance ease-of-use and convenience. It's freeware and available here:
http://www.yellowmug.com/snapndrag/
-
ScreenCapture Tool
2003-05-27 18:25:01 anonymous2 [Reply | View]
I've written a utility called ScreenCapture Plus. It uses the command-line tool to cature, then allows you to scale the image and save it in several formats or send it to the clipboard. Take a look at piDog.com
-
Hacks?
2003-03-05 05:58:45 anonymous2 [Reply | View]
This is a fine article, but PLEASE stop using the word "hacks" when all you are describing is basic programs and their functionality.
There are no hacks in this article. Get off the buzzwords train!
-
What about recording mouse movements?
2003-03-04 15:48:21 anonymous2 [Reply | View]
Shoot, I was hoping the article would describe that too. :) What if I want to record my mouse movements, like for software demos? Recording my actual session, like a moving screen capture. -
What about recording mouse movements?
2003-03-05 07:20:31 Derrick Story |
[Reply | View]
Actually, Snapz will do that. Take a look at this tutorial. At the top of page 2 there's a link for a screenshot animation, which is what I think you're looking for. I created it using Snapz for the video, then adding a little audio for more impact.
-
Much more to the built-in screenshot tool than presented here.
2003-03-03 07:11:17 anonymous2 [Reply | View]
As awesome as Snapz Pro is, i'd feel remiss to not mention that there are some things lacking in this tutorial, particularly in the mention of the built-in screenshot functionality with the finder. I am constantly unimpressed with how little homework goes into articles like this.
Command + Control + Shift + 4 = selection tool, that puts the selection on your clipboard. If you go to a program like Mail, you can paste into mail. It creates a file as an attatchment. Guess what format it's in? Tiff.
Command + Control + Shift + 3 = puts the entire screen on your clipboard.
Command + Control + Shift + 4 then tap the spacebar = brings up a camera icon. Move it around the screen and it will highlight windows, icons, menus, etc. Click and whatever it highlighted will be put onto your clipboard. If you remove the "Control" from this key combo, it will create a PDF of it on your desktop.
-
Much more to the built-in screenshot tool than presented here.
2004-01-08 21:59:19 ronosxspt [Reply | View]
Great advice and great tips. Forget about paying any money for screen shots. Save your money and press the buttons. I have one question. Where do you learn about all these complicated key commands? Do you just pick this up by trial and error or is there a document that you go to and get the information?
Again, thanks for the wonderful tips.
Ronald Cross -
Much more to the built-in screenshot tool than presented here.
2003-03-03 11:09:32 Derrick Story |
[Reply | View]
Absolutely. Thanks for the great tips. This wasn't a full review of Snapz, rather, an overview of the tools available for making screenshots, etc. Your input is much appreciated. -
Much more to the built-in screenshot tool than presented here.
2003-03-08 04:24:57 retro [Reply | View]
I don't think he was referring to Snapz, rather commands you can use with the built-in utility.
Its easy to overlook commands like this, Apple's built-in help is not typically very helpful. -
Much more to the built-in screenshot tool than presented here.
2006-07-21 01:57:54 wjanoch [Reply | View]
Crashing... must sleep... grammar faleing...
(me crashing, not me mac... not even me windows running on me mac... just me...) -
Much more to the built-in screenshot tool than presented here.
2006-07-21 01:55:09 wjanoch [Reply | View]
Ok, so I do have time to look it up... rather I already had another link on a tab with this on it
http://en.wikipedia.org/wiki/Screenshot
Command Click on links in google's results and you get multiple pages loading while you read the next result's description. Note: you must enable tabbed browsing in Safari's preferences (FireFox tabs by default). -
Much more to the built-in screenshot tool than presented here.
2006-07-21 01:22:25 wjanoch [Reply | View]
Find the built in keyboard short cuts in "System Preferences/Keyboard & Mouse" on the "Keyboard Shortcuts" tab. The OS options are all listed there with check marks to eneble/disable. You can add shortcuts for any Application's Menu Item. You can even assign shortcuts that are already used by the OS and when you're in that program the shortcut will do what it's supposed to for that App, and when that App isn't focused it defaults to the OS item the Shortcut is assigned to (works like that in multiple apps too).
Though I don't have time to look now, the file format for screen shots can be set on the command line. It's kept in a com.apple... file under your ~/Library I think. There are different defaults in different OS X versions, but I belive they all support the same set of possible output formats as it's dependent on Preview's output options (or same source that Preview uses).
-
Use AppleScript Studio App: DVD Capture
2003-03-02 14:15:25 anonymous2 [Reply | View]
http://www.versiontracker.com/moreinfo.fcgi?id=16324&db=mac
-
Screenshots of screenshots
2003-03-01 10:39:59 anonymous2 [Reply | View]
In this article, there are screenshots of the act of taging screenshots. How did you do that? Or were the images for this article created in Photoshop? -
Screenshots of screenshots
2003-03-01 22:56:58 Wei-Meng Lee |
[Reply | View]
All the images were captured using the techniques described in this article.
Wei-Meng
-
choice of file format
2003-03-01 08:07:29 anonymous2 [Reply | View]
I feel you were slightly remiss in not pointing out that Preview.app is more than capable of outputting screen captures, whether .tiff, .pdf, or .pict from the clipboard, in a wide range of formats via the Export... option in the File menu.
For the casual user this is more than sufficient and this oversight, along with the lack of mention of the ctrl + space shortcuts provided by the built in facility, lent this article the unseemly air of an unmarked 'advertorial'.
-
choice of file format
2003-03-03 11:16:13 Derrick Story |
[Reply | View]
Oh pleeeeese! This article is an effort to give folks an overview of the tools available, then let others chime in with their favorite hacks. Which you've done. Thank you for your contribution. Spare me the attitude.
-
ctrl & space
2003-03-01 02:52:46 anonymous2 [Reply | View]
The built in command keys are just an interface into the screencapture command line tool - or vice versa ;-)
Therefore the ctrl key and the space key also work with the cmd-shift-4 combo. Hit cmd-shift-4 then space toggles. If you want to route to the clipboard hold ctrl when you release the mouse after dragging or clicking.
-
Preview.app?
2003-02-28 22:13:59 anonymous2 [Reply | View]
See next to where it says "preview" in the print dialog? That funny looking button that reads "Save as PDF"? Save a step and hit that instead of going via Preview.app. That's been there since 10.2. -
Preview.app?
2005-12-05 14:19:03 tommus [Reply | View]
or you can just ad -ttiff into the command... -
Preview.app?
2003-03-03 11:21:08 Derrick Story |
[Reply | View]
Very good! You are oh so right, and very helpful too. Thanks for catching that and providing the update.
-
space bar to capture a window
2003-02-28 17:01:39 anonymous2 [Reply | View]
actually you can capture just a window simply by using the shift-command-4 technique. once you press the key combo, press the spacebar (as illustared in the terminal example). this will also display the camera and toggle the capture window window mode.
-
Isn't it Ironic?
2003-02-28 16:40:33 anonymous2 [Reply | View]
Am I the only one who finds it ironic that all the images are broken on an article about screenshots? (At least at the time of writing: Feb 28, 16:40 PST.) -
Isn't it Ironic?
2003-03-02 01:42:27 anonymous2 [Reply | View]
No, it's quite logical actually. Shooting at things will often break them... -
Isn't it Ironic?
2006-07-21 01:36:08 wjanoch [Reply | View]
Clold dry sense of humor... I like it.
BTW: in windows, you can bring up the System Properties by pressing <Windows><break> (That's the Windows logo button and the Pause/Break key). Also try <win><d> for desktop <win><m> to minimize all (yes, that's basically redundant, one dates back to Win95), and my favorite <win><e> for Windows Exploerer. I use them in Parallels via XP all the time (Yes! my mac runs everything!... (ok, so I don't have Gnome and KDE installed... yet, but I have run Puppy Linux with XCF a time or two :-P ).
How's that for Ironic?
And how about this. My IBM Thinkpad is busted because the power cord got bumped a few to many times since Win98. Now I use that offical IBM laptop bag for my Mac. IBM used to make the PowerPC processor for the mac, but my mac has an Intel inside. And it has a mag safe power adapter. Maybe I should get a new bag before the handle <break>s! -
It is ironic!
2008-08-24 08:51:34 MrMedwyn [Reply | View]
"Wei-Meng Lee is [...] founder of Developer Learning Solutions, a technology company specializing in hands-on training of the latest Microsoft technologies."
The first three pages, I was sure of being reading an Apple-related article. *smile*








i have reviewed all the option in your post and I think I have a good grasp of what they can do.
Is there anything in the Mac world that comes close to the screen capture and edit can do in SnagIt?
If you want to see a quick feature list, you can that here... www.snagit.com
This is a legitimate inquiry, if you know of a Mac tool like SnagIt, I will purchase it today.
Kind regards,
Mark