Last active
August 7, 2018 22:46
-
-
Save ChristoferK/e0db9197184a25d90c8cf601fd43825e to your computer and use it in GitHub Desktop.
[Minimise Background Safari Windows] Minimises all Safari windows except the one in focus. #JXA #JavaScript #Safari
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
windows = Application('Safari').windows() | |
windows.shift() // Remove front window from array | |
windows.map(w=>w.miniaturized = true) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment