Created
November 5, 2010 12:15
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FOO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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