From d676974a5a66c6cbb89a1b2cc0333ff1d7acf1cb Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 8 Oct 2018 18:31:22 +0200 Subject: Close the application when the window is closed with the close button --- Word Count/AppDelegate.applescript | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Word Count') 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 -- cgit v1.2.3