Created
May 15, 2019 21:58
-
-
Save kevin-funderburg/b969d1023b4355a1243f4033352ef3ee to your computer and use it in GitHub Desktop.
Close front document of front app without saving.
This file contains hidden or 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 no | |
| end tell | |
| end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment