Created
May 15, 2019 21:57
-
-
Save kevin-funderburg/3971c9f4f450dcee2043f1aafd21e896 to your computer and use it in GitHub Desktop.
Close front document of front app with 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 | |
tell front document | |
close saving yes | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment