Sub topic 3
Capture part of the screen
This chapter assumes you already know the full-screen shortcut (Shift-Command-3) from the previous chapter. It covers the selection shortcut, Shift-Command-4. You will learn how to draw a selection and adjust it mid-drag, and how to avoid the usual mistakes.
When to capture a selection
Most screenshots only need part of the screen. A full-screen capture includes the menu bar, the Dock, other windows, and anything private that happens to be open. You then have to crop it. A selection capture records only the rectangle you choose, so the file is smaller and needs no cropping.
Use a selection when you want one of these:
- A single dialog, error message, or paragraph.
- A region that doesn't line up with a window edge, such as part of a chart.
- A capture that leaves out personal information elsewhere on the screen.
If you want a whole window with its edges and shadow, the next chapter covers a better method.
The basic workflow
- Press Shift-Command-4. The pointer becomes a crosshair.
- Move the crosshair to one corner of the area you want.
- Press and hold the mouse button or trackpad, and drag to the opposite corner. A gray rectangle shows the selection.
- Release the button. macOS captures the area and saves it.
By default the file lands on the Desktop. A thumbnail appears in the lower-right corner of the screen for a few seconds. Where files go and how they are named is covered in a later chapter.
To cancel at any point before you release the button, press Escape. Nothing is saved.
Next to the crosshair you will see two numbers. They are the pointer's position, measured in points from the top-left corner of the screen. While you drag, they change to the width and height of the selection. This is useful when you need a capture of a known size, such as a 600 by 400 image for a document.
Adjust the selection while dragging
You can't change the rectangle after you release the button. You can change it while the button is still down. Three keys help.
| Key held while dragging | Effect |
|---|---|
| Space bar | Moves the whole rectangle without changing its size |
| Shift | Locks one axis, so only one edge moves at a time |
| Option | Resizes the rectangle from its center instead of from the starting corner |
Move the rectangle with Space
A common situation is a rectangle that is the right size but in the wrong place. Don't release the button and start over. Keep the button down, hold Space, and move the pointer. The rectangle slides with it. Let go of Space to go back to resizing.
Lock an edge with Shift
If you drag diagonally, both the width and the height change. Hold Shift after you start dragging. The first edge you move stays free and the others lock, so you can fine-tune just the width or just the height. Release Shift to return to normal.
Resize from the center with Option
Hold Option while dragging to make the starting point the center of the rectangle. This is useful when you want to frame something symmetrically, such as an icon, because you start at its middle and drag outward.
You can combine the keys during one drag. For example, drag out a rough rectangle, hold Space to place it, and then release Space and hold Option to grow it evenly.
Pressing Space before you drag
If you press Space right after Shift-Command-4, and before you press the mouse button, the crosshair turns into a camera icon. You are now in window capture mode. Windows highlight as you move over them, and a click captures the one under the pointer. Pressing Space again returns you to the crosshair. The next chapter covers this mode in detail.
The result is that Space does two different things. Before the drag it switches the capture mode. During the drag it moves the rectangle. If a capture shows a whole window when you expected a rectangle, you probably tapped Space too early.
Add Control to copy instead of save
Hold Control along with the shortcut, so the combination is Control-Shift-Command-4, and macOS puts the captured area on the clipboard instead of saving a file. You can paste it straight into a message or document. Clipboard capture has its own chapter, so here you only need to know that the selection and adjustment keys behave the same way.
Things to know about the result
Retina displays double the pixel size
On a Retina display, one point on the screen is two pixels wide in each direction. A selection that reads 400 by 300 in the on-screen numbers produces an image 800 by 600 pixels. The image looks the same size as the area you selected, but it holds four times as many pixels. If you need an exact pixel size for a web page or a form, plan for this. Check the size afterward in Finder with Command-I (Get Info) and read the Dimensions line.
A selection stays on one display
You can't drag a single rectangle across two monitors. The selection stays on the display where you started. To capture content on both, take two captures, or use a full-screen capture on each display.
What is included
The capture includes everything visible inside the rectangle, such as windows, menus, and the Dock if it falls within the area. Items that the system draws on top, such as notification banners, appear if they are inside the area when you release the button. The mouse pointer is not included in a standard selection capture. The Screenshot toolbar, covered later, has an option to show the pointer.
Common problems
- Nothing happens when you press the shortcut. Another app or a keyboard setting may use the same keys, or the shortcut may be turned off in System Settings under Keyboard, Keyboard Shortcuts, Screenshots. A later chapter covers this.
- The crosshair appears but no file shows up. You probably pressed Escape, or the save location no longer exists. Check the thumbnail and the folder that screenshots are set to use.
- The rectangle jumps when you press a key. Holding Space moves it and holding Option resizes from the center, so a stray key press changes the shape. Release the extra key and adjust again.
- The edges of the capture are slightly off. Dragging on a small trackpad is imprecise. Use Space to nudge the rectangle into place, or use the Screenshot toolbar, where the selection has handles you can adjust before capturing.
A scripted equivalent
You can start the same interactive selection from Terminal with the screencapture command. The -i option starts interactive mode, where you drag a selection, and the argument names the output file.
screencapture -i ~/Desktop/selection.pngPress Escape during the selection and no file is written. The screencapture command gets its own chapter later in this tutorial.
Summary of the shortcut family
- Shift-Command-4 starts a selection. Drag and release to capture.
- Escape cancels.
- Space held during a drag moves the rectangle.
- Shift held during a drag locks one axis.
- Option held during a drag resizes from the center.
- Space pressed before dragging switches to window capture.
- Control added to the shortcut copies the capture to the clipboard.
Exercise
You press Shift-Command-4 and start dragging a rectangle around a dialog box. The rectangle is the right size, but it sits 30 points too far to the left. Without releasing the mouse button, how do you fix this, and what happens if you press Escape instead?
Show answer
Keep the button down, hold the Space bar, and move the pointer to slide the rectangle to the right place. Then release Space and release the button to capture. Pressing Escape cancels the capture and no file is saved.
Exercise
You select a 500 by 250 area on a Retina display. What are the pixel dimensions of the saved image, and how can you check them in Finder?
Show answer
The image is 1000 by 500 pixels, because each point is two pixels on a Retina display. Select the file in Finder and press Command-I to open Get Info. The Dimensions line shows the pixel size.
Exercise
After pressing Shift-Command-4, you tap the Space bar before dragging, and the pointer turns into a camera. What mode are you in, and how do you get back to drawing a rectangle?
Show answer
You are in window capture mode. Press Space again to return to the crosshair, then drag to select an area.