iTerm2
iTerm2 is a replacement for Terminal and the successor to iTerm. It works on Macs with Leopard, Snow Leopard, or Lion. Its focus is on performance, internationalization, and supporting innovative features that make your life better.[1]
- Project Homepage [EN]
- iTerm2 [EN] @ Homebrew Cask
Documentation
- Documentation [EN]
- FAQ [EN]
Examples
- Open a new iTerm2 window and run a shell command using AppleScript
file="${HOME}/dev/folder_actions/logs/debug.log"
if [[ ! -f "${file}" ]]; then
exit 1
fi
${OSASCRIPT} <<EOS
tell application "iTerm"
set newWindow to (create window with default profile)
tell newWindow
tell current session of newWindow
write text "tail --lines=+1 --follow '${file}'"
end tell
end tell
end tell
EOS