Currently, I have an sh
file which I use to run a script as such:
osascript -e "tell application \"Terminal\" to do script \"cd $PWD && npm run build:watch\""
osascript -e "tell application \"Terminal\" to do script \"cd $PWD && firebase emulators:start --inspect-functions\""
This works fine with the default terminal. However, how can I substitute this with Iterm2? I can't seem to find any answer online.
If I substitute Terminal
with Iterm2
, I get this error:
29:38: syntax error: A “script” can’t go after this identifier. (-2740)
29:38: syntax error: A “script” can’t go after this identifier. (-2740)