Created
April 28, 2015 14:57
-
-
Save masnick/b532d6d675b28e939e09 to your computer and use it in GitHub Desktop.
Close all Finder windows except the front one
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" | |
repeat while window 2 exists | |
close window 2 | |
end repeat | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment