Skip to content

Instantly share code, notes, and snippets.

@benatkin
Created February 23, 2010 04:58
Show Gist options
  • Save benatkin/311866 to your computer and use it in GitHub Desktop.
Save benatkin/311866 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'appscript'
puts Appscript.app('Finder').desktop.window.bounds.get()[2..-1].join('x') # prints 1440x900
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment