Keyboard Maestro Macro: Close all open tabs and hide Safari

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.

Safari Group


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.

Published first to Medium – November 20, 2023

RSS Feed | | Mastodon | Notes
© 2022