Last active
November 1, 2022 17:11
-
-
Save Koze/2e1a9bf967b2bf865fc9 to your computer and use it in GitHub Desktop.
Close all windows with AppleScript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Finder" to close windows |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# index 1 is frontmost window | |
tell application "Finder" to close window 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Gotcha, thank you!