tell application "iTerm2"
        contents of (current session of current window)
end tell

