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 python3 | |
containers = [ | |
3172, # UI Gateway | |
5196, # UI tomcat | |
1224, # Transit UI | |
1224, # Controller | |
1224, # ScribeUI | |
1224, # Applicant API | |
1224, # Composer |
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
(defun it2-tell-current (&rest messages) | |
"Send a message (or list of messages) to the current session of the current window in iTerm2" | |
(do-applescript | |
(concat | |
" tell application \"iTerm2\"\n" | |
" tell the current session of current window\n" | |
(string-join messages "\n") | |
"\n end tell\n" | |
" end tell\n"))) |