5
2
I need to merge two osascript scripts, so that with one command I can open a new terminal tab and execute a script like echo hello
into that new tab.
This one opens a new terminal tab.
osascript -e 'tell application "Terminal" to activate' -e 'tell application "System Events" to tell process "Terminal" to keystroke "t" using command down'
This one opens a new window and runs echo hello
osascript -e 'tell app "Terminal" do script "echo hello" end tell'
Do you know if there's a way besides using the do script command? Want to run command using Hyper Terminal which doesn't support that syntax – Borat.sagdiyev – 2017-06-15T18:25:43.323