diff options
author | Teddy Wing | 2018-10-08 18:31:22 +0200 |
---|---|---|
committer | Teddy Wing | 2018-10-08 18:31:22 +0200 |
commit | d676974a5a66c6cbb89a1b2cc0333ff1d7acf1cb (patch) | |
tree | e65e06730e39bef8195d35bb8fd89837406da3ce /Word Count | |
parent | 0a809e7f7b275d3eff5e93b957183732093f3210 (diff) | |
download | Word-Count-d676974a5a66c6cbb89a1b2cc0333ff1d7acf1cb.tar.bz2 |
Close the application when the window is closed with the close button
Diffstat (limited to 'Word Count')
-rw-r--r-- | Word Count/AppDelegate.applescript | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Word Count/AppDelegate.applescript b/Word Count/AppDelegate.applescript index 8cc0d1e..ff505b5 100644 --- a/Word Count/AppDelegate.applescript +++ b/Word Count/AppDelegate.applescript @@ -36,5 +36,9 @@ script AppDelegate -- Insert code here to do any housekeeping before your application quits return current application's NSTerminateNow end applicationShouldTerminate_ - + + on applicationShouldTerminateAfterLastWindowClosed_(sender) + return YES + end applicationShouldTerminateAfterLastWindowClosed_ + end script |