Skip to content

Instantly share code, notes, and snippets.

@stevenschobert
Created January 18, 2015 04:43
Show Gist options
  • Save stevenschobert/a2fcb5ad83f66d3e8693 to your computer and use it in GitHub Desktop.
Save stevenschobert/a2fcb5ad83f66d3e8693 to your computer and use it in GitHub Desktop.
Get the dimensions of the OS X dock using AppleScript
tell application "System Events" to tell process "Dock"
set dock_dimensions to size in list 1
set dock_width to item 1 of dock_dimensions
set dock_height to item 2 of dock_dimensions
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment