-
-
Save JC1738/c49bc599bf1fb70e9cc6 to your computer and use it in GitHub Desktop.
Open new tab run a command in iterm2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env osascript | |
on run argv | |
set AppleScript's text item delimiters to {" "} | |
tell application "iTerm" | |
make new terminal | |
tell the current terminal | |
activate current session | |
launch session "Default Session" | |
tell the last session | |
write text argv as string | |
end tell | |
end tell | |
end tell | |
end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment