From 4ecf981909a1b24f2b3b64a40e92c3e3ebbdee85 Mon Sep 17 00:00:00 2001 From: Fellippe Heitor Date: Thu, 25 Feb 2016 01:08:53 -0300 Subject: [PATCH] Improve the start script in OS X. Starts qb64 as an independent process and closes Terminal window after it's done. If no more Terminal windows remain open, quits Terminal app. --- qb64_start_osx.command | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qb64_start_osx.command b/qb64_start_osx.command index 816201be3..b8d5d6476 100755 --- a/qb64_start_osx.command +++ b/qb64_start_osx.command @@ -1,2 +1,5 @@ cd "$(dirname "$0")" -./qb64 +./qb64 & +osascript -e 'tell application "Terminal" to close (every window whose name contains "qb64_start_osx.command")' & +osascript -e 'if (count the windows of application "Terminal") is 0 then tell application "Terminal" to quit' & +exit \ No newline at end of file