During the research phase for blog posts, I often end up with numerous tabs open in Safari. Once I’ve finished utilizing these tabs, I’d like to have the option to close them all and hide Safari simultaneously.
There are a few different ways to close tabs on a Mac. The simplest way is to use the keyboard shortcut Command+W. Alternatively, you can click on the “x” button in the top-left corner of each tab, or you can right-click on the tab and select an option from the menu.
If you want to close all tabs in a window, you can use the keyboard shortcut Command+Option+W. Whatever option you use to close the tabs, Safari is still the active window, and you still have to hide Safari Command+H.
As I mentioned above, I want all this to happen simultaneously with a keyboard shortcut, so I created the following Keyboard Maestro macro.
Now when I execute the Option+Command+H keyboard shortcut in Safari, it closes all the open tabs and hides Safari. This saves numerous clicks and keystrokes.