Skip to content

Instantly share code, notes, and snippets.

@dakotasmith
Created January 30, 2013 18:51
Show Gist options
  • Save dakotasmith/4675668 to your computer and use it in GitHub Desktop.
Save dakotasmith/4675668 to your computer and use it in GitHub Desktop.
Applescript which activates and deactivates groups of Geeklets within Geektool, depending on resolution width.
tell application "Finder"
set _b to bounds of window of desktop
set _width to item 3 of _b
set _height to item 4 of _b
end tell
tell application "GeekTool Helper"
if _width > 1367 then
set visible of group "Desk" to true
set visible of group "11 inch screen" to false
else
set visible of group "11 inch screen" to true
set visible of group "Desk" to false
end if
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment