aboutsummaryrefslogtreecommitdiffstats
path: root/Word Count/AppDelegate.applescript
diff options
context:
space:
mode:
authorTeddy Wing2018-10-08 18:31:22 +0200
committerTeddy Wing2018-10-08 18:31:22 +0200
commitd676974a5a66c6cbb89a1b2cc0333ff1d7acf1cb (patch)
treee65e06730e39bef8195d35bb8fd89837406da3ce /Word Count/AppDelegate.applescript
parent0a809e7f7b275d3eff5e93b957183732093f3210 (diff)
downloadWord-Count-d676974a5a66c6cbb89a1b2cc0333ff1d7acf1cb.tar.bz2
Close the application when the window is closed with the close button
Diffstat (limited to 'Word Count/AppDelegate.applescript')
-rw-r--r--Word Count/AppDelegate.applescript6
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