I've tried just about everything to figure out a way to automatically bump up the font size much larger when I hit a hot key in tmux by triggering a script. Only thing I got working is this which is very hacky and slow:
osascript -e '
tell application "System Events" to keystroke "++++++++++++++++++++" using command down
This works but only with shell integration:
echo -e "\033]50;SetProfile=Development_Large\a"
But the problem is shell integration does not work with tmux.
Anything else I can do? I've tried applescript to change the current profile but I could not get any of them to work. Example:
osascript -e "
tell application \"iTerm2\"
tell current window
tell current tab
set profile to \"cheat\"
This script just outputs "cheat" to the terminal.
Is there something else I might try?