close terminal window in bash code example
Example 1: how to close chromium from terminal
wmctrl -c "tab title"
Example 2: launch bash script from application mac without opening terminal
chmod ugo+x myapp
wmctrl -c "tab title"
chmod ugo+x myapp