Skip to content

Instantly share code, notes, and snippets.

@raine
Created November 5, 2010 12:15
Show Gist options
  • Save raine/664050 to your computer and use it in GitHub Desktop.
Save raine/664050 to your computer and use it in GitHub Desktop.
Get content and amount of rows in the last used or current terminal
tell application "iTerm" to tell current terminal
set rows to (get number of rows)
set content to last word of (get text of current session)
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment