Created
May 15, 2019 21:55
-
-
Save kevin-funderburg/ffdc4a37e0e75699e6adcfcaad44b119 to your computer and use it in GitHub Desktop.
Close all documents of front app without saving.
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 "System Events" to set frontapp to name of first process whose frontmost is true | |
tell application frontapp to close every document without saving |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment