Sub topic 4
Capture a single window
This chapter assumes you already know the full-screen shortcut (Shift-Command-3) and the selection shortcut (Shift-Command-4). Window capture builds on the selection shortcut. It lets you grab one window, with its edges and a soft shadow, without dragging a rectangle by hand.
Why capture a window instead of an area
Dragging a selection rectangle works for most captures. A window capture is better when you want a clean result of one app window.
- The edges are exact. You don't have to line up a rectangle with the window border.
- The window is captured on its own. Other windows that overlap it are not included.
- The result includes a drop shadow on a transparent background, which looks polished in documents and slides.
- It works the same way for ordinary windows, menus, the Dock, and the menu bar.
The cost is that you can't crop to part of a window. If you only need a section, use the area capture from the previous chapter.
Capture a window with the keyboard
The window capture is a mode of the selection tool. You start with Shift-Command-4 and then switch modes.
- Bring the window you want into view. It can be partly covered by other windows.
- Press Shift-Command-4. The pointer becomes a crosshair.
- Press the Space bar. The crosshair turns into a small camera icon.
- Move the camera over the window you want. The window is tinted (usually blue-gray) to show what will be captured.
- Click. macOS plays the shutter sound and saves the capture.
If you press Space again, the camera turns back into the crosshair. This lets you switch between window and area capture during a single capture. Press Esc at any point to cancel without saving anything.
The shadow and how to remove it
By default, a window capture includes the window's drop shadow. The shadow is part of the image. The pixels around the window are transparent, so on a white page the shadow looks natural, and on a dark page it may look odd.
To capture the window without the shadow, hold Option while you click. The image is then cropped to the exact window edge.
The order of actions matters:
- Press Shift-Command-4.
- Press Space.
- Hold Option, then click the window.
If you hold Option before pressing Space, it can change how the selection behaves instead. The reliable approach is to switch to the camera pointer first and add Option only at the moment of the click.
| Click method | Shadow | Background around the window |
|---|---|---|
| Plain click | Included | Transparent |
| Option-click | Removed | None. The image ends at the window edge |
Capture to the clipboard instead of a file
Hold Control while you click the window to copy the capture to the clipboard. Nothing is saved to disk. This is useful when you want to paste straight into a message, a document, or an image editor.
You can combine modifiers. Control and Option together copy the window to the clipboard without a shadow. As with Option alone, the keys that change the result are applied at the click.
Capture a window from the Screenshot toolbar
Shift-Command-5 opens the Screenshot toolbar. It has a button named Capture Selected Window. Choose it and the pointer becomes the camera icon.
- Click the window to capture it.
- Open Options in the toolbar to set a timer (none, 5 seconds, or 10 seconds) before you click.
- Options also lets you turn off the floating thumbnail and choose where the file is saved.
- The Options menu has a Show Mouse Pointer item. When it is on, the pointer appears in the capture.
The toolbar approach is slower than the keyboard shortcut. It is useful in two situations: you can't remember the shortcut, or you need the timer.
Capture menus, the Dock, and the menu bar
The camera pointer also selects things that are not normal windows. This is how you capture a menu that closes as soon as you click away.
To capture an open menu:
- Open the menu in the app, for example the File menu.
- Press Shift-Command-4. The menu stays open.
- Press Space to get the camera pointer.
- Click the menu.
The capture contains only the menu. The same method captures the Dock, the menu bar, and the Notification Center panel when they are highlighted by the camera pointer.
If a menu closes when you press the shortcut, use a timer. Start a 5-second capture from the toolbar, open the menu, and wait for the capture. A timed full-screen capture can then be cropped, or you can use the timed selected-window mode and click before the menu opens.
Things that can go wrong
The camera pointer doesn't appear
If pressing Space does nothing, check these causes:
- You pressed Space before Shift-Command-4 finished starting. Wait until you see the crosshair.
- Another app has taken the shortcut. Look in System Settings, Keyboard, Keyboard Shortcuts, Screenshots, and make sure the shortcuts are enabled and don't conflict with others.
- You are in a mode where the crosshair is locked. Press Esc and start again.
The captured window looks black or empty
Some content is protected and does not appear in captures. Video from certain streaming services, and some protected documents, appear as black rectangles. This is a property of the content, not a mistake in your capture. Capturing the window itself still works. Only the protected region is blank.
The window has an unexpected transparent border
That border is the shadow area. Retake the capture with Option held at the click, or crop the image in Preview.
A different window is captured
The tint shows the window under the pointer. A small floating panel or toolbar can sit in front of the main window and be selected instead. Move the pointer to a part of the window that is not covered by a panel, and check the tint before you click.
Capture a window from Terminal
The screencapture command can start in window-selection mode. This is covered in detail in a later chapter. This example is a preview.
screencapture -o -W ~/Desktop/window.pngThe -W flag starts the interaction in window selection mode, so you click a window right away. The -o flag leaves out the window shadow. The result is saved to the path at the end of the command. As in the keyboard method, pressing Space switches to area selection, and Esc cancels.
Comparison with other capture types
| Need | Best choice |
|---|---|
| One app window, clean edges | Shift-Command-4, Space, click |
| One app window, no shadow | Same, with Option held at the click |
| Part of a window | Shift-Command-4, drag |
| A window to the clipboard | Same as window capture, with Control held at the click |
| A menu that closes on click | Open the menu first, then Shift-Command-4, Space, click |
| A window after a delay | Shift-Command-5, Options, set a timer, Capture Selected Window |
Exercise
You need a screenshot of a Notes window with no shadow, and you want it on the clipboard so you can paste it into an email. Which keys do you press, and in what order?
Show answer
Press Shift-Command-4, then press Space to get the camera pointer. Hold Control and Option, then click the Notes window. Control sends the image to the clipboard, and Option removes the shadow. Paste it with Command-V in the email.
Exercise
You open a menu, press Shift-Command-4, and click on the menu with the crosshair, but the capture only shows a small rectangle you dragged. What did you miss, and what should you do?
Show answer
You stayed in area selection mode. After pressing Shift-Command-4, press Space to switch to the camera pointer. Then click the menu while it is tinted. Press Esc first if you need to cancel the current selection.