Sub topic 13
Switching apps with the Dock and Command-Tab
This chapter assumes you can open apps from the Dock, know what the menu bar is, and have used System Settings. You will learn two ways to move between running apps and how each one behaves when an app has several windows.
The working model
macOS keeps one app frontmost at a time. The frontmost app owns the menu bar and receives your keystrokes. Switching apps means changing which app is frontmost. Two tools do this: the Dock and the app switcher.
Switching with the Dock
Click a running app's icon in the Dock. That app becomes frontmost, and its windows come forward. A small dot under the icon marks a running app, so you can see what is open at a glance.
A few details are worth knowing:
- If the app has no open windows, clicking its icon may do nothing visible, depending on the app. Many apps open a new window when you click.
- Minimized windows sit at the right end of the Dock. Clicking one restores it.
- Control-click or right-click an icon to see a list of that app's open windows and jump to one directly.
Switching with Command-Tab
Hold Command and press Tab. A bar of running apps appears, ordered by most recently used. Release Command to switch to the highlighted app.
| Keys | Result |
|---|---|
| Command-Tab | Switch to the previous app |
| Command-Tab, Tab (still holding Command) | Move one app to the right |
| Command-Shift-Tab | Move one app to the left |
| Command-` (backtick) | Cycle through windows of the frontmost app |
| Q (while the switcher is open) | Quit the highlighted app |
| H (while the switcher is open) | Hide the highlighted app |
Tapping Command-Tab once and releasing jumps between your two most recent apps. This is the fastest way to flip back and forth between, for example, a browser and a text editor.
Common errors
- A window does not appear after Command-Tab. If the app has only minimized windows, switching to it can leave you with no visible window. Hold Option when you release Command to restore the minimized window.
- The app is highlighted but nothing changes. You may have released Command too early, or an app with no windows is frontmost. Check the menu bar to see which app is active.
- Command-` seems to do nothing. That shortcut cycles windows only within the current app. Keyboards with a different layout may use another key, and you can check the binding in System Settings under Keyboard, Keyboard Shortcuts.
- Quit versus close. Closing a window usually leaves the app running, and the dot remains. Quit the app with Command-Q if you want it gone.
Exercise
You are in Safari and want to reach the Notes app you used a minute ago, then return to Safari. Which keys do this, and what do you press to reach a second Safari window afterward?
Show answer
Press Command-Tab once and release to jump to Notes. Press Command-Tab once and release again to return to Safari. Then press Command-` (backtick) to cycle to Safari's other window.