Close All Finder Windows

Sorry if this is a repeat question. Is there a way to use keyboard Maestro to close all finder windows?


1 Like

Not Keyboard Maestro specific:

While in the Finder, type: Command-Option-W ( ⌘-βŒ₯-w ) and all of the open Finder windows should close.

1 Like

Hey Todd,

It’s nearly always better to script these sorts of things when possible, rather than depend upon brute-forcing the user-interface.

Execute AppleScript Action:

tell application "Finder"
  close every window
end tell

Easy enough.

Best Regards,

1 Like