mirror of
https://github.com/QB64Official/qb64.git
synced 2024-08-22 02:05:08 +00:00
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 |