1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-01 15:00:38 +00:00
QB64-PE/qb64_start_osx.command
Fellippe Heitor 4ecf981909 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.
2016-02-25 01:08:53 -03:00

5 lines
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