Skip to content

Instantly share code, notes, and snippets.

@chrislloyd
Created October 29, 2008 22:56
Show Gist options
  • Save chrislloyd/20855 to your computer and use it in GitHub Desktop.
Save chrislloyd/20855 to your computer and use it in GitHub Desktop.
require 'appscript' # sudo gem install rb-appscript
puts Appscript.app('Terminal').windows.get.select{|w|w.frontmost}.collect{|w| [w.number_of_columns.get, w.number_of_rows.get]}.first
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment