I run irssi inside a tmux session on OSX. I often close the terminal as I usually get notified by growl about important stuff. I don't want to open a terminal and write a command every time I want to check IRC.
#!/bin/zsh
/usr/local/bin/tmux attach -d -t irssi || /usr/local/bin/tmux new -s irssi irssi
tell application "iTerm"
activate
set myterm to (make new terminal)
tell myterm
launch session "irssi"
end tell
end tell
5. Add a nice icon
- it should be possible to set the tmux commands directly as the iTerm session command but that somehow didn't work for me