Looking for a way to close the current tab using the command line, I messed it up, but in the end I get an invitation. Do you really want to close what I would like to avoid. Here is my code,
osascript -e 'tell application "System Events" to tell process "Terminal" to keystroke "w" using command down'
ehime source
share