mirror of
https://github.com/QB64Official/qb64.git
synced 2024-09-28 11:17:47 +00:00
4ecf981909
Starts qb64 as an independent process and closes Terminal window after it's done. If no more Terminal windows remain open, quits Terminal app.
5 lines
No EOL
260 B
Bash
Executable file
5 lines
No EOL
260 B
Bash
Executable file
cd "$(dirname "$0")"
|
|
./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 |