Arnaud Posted February 28, 2016 Posted February 28, 2016 Is there any way to have a workflow that opens a new tab in the currently opened window? Even if the window is not focused. I'm struggling to do that.Thanks for your help.
deanishe Posted March 1, 2016 Posted March 1, 2016 (edited) AppleScript is your friend. Unfortunately, Terminal's scripting support sucks, so you have to simulate keyboard shortcuts instead: tell application "System Events" tell application process "Terminal" set frontmost to true keystroke "t" using command down end tell end tell On my machine, that opens a new Terminal window if none is open, and creates a new tab in the front window otherwise. Edited March 1, 2016 by deanishe
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now