-
Easy to set up a shortcut to start the terminal app. Is it possible to open a new additional terminal window? Ideally I would like to have just one shortcut to open up a terminal if none exists and also an additional terminal if one already exits |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
A quick ChatGPT session gave me this script that seems to work well. Save it somewhere, #!/usr/bin/osascript
if application "Terminal" is running then
tell application "Terminal"
set windowCount to count of windows
activate
tell application "System Events" to keystroke "n" using command down
end tell
else
tell application "Terminal" to activate
end if |
Beta Was this translation helpful? Give feedback.
-
Script for those curious https://chatgpt.com/share/67ceb5ca-8450-8000-9c04-981188bedd43 |
Beta Was this translation helpful? Give feedback.
A quick ChatGPT session gave me this script that seems to work well.
Save it somewhere,
chmod +x [script]
on it, and run it as a command in Leader Key: