Created
May 15, 2019 21:52
-
-
Save kevin-funderburg/057ff863c755843e8e1540f9d7c3cd7b to your computer and use it in GitHub Desktop.
Save and close all open documents of front app.
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 with saving |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment