anonymous / gist:5020503

Embed URL


SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View gist:5020503
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
tell application "Finder" to set desktopBounds to bounds of window of desktop
set screenWidth to item 3 of desktopBounds
set screenHeight to item 4 of desktopBounds
tell application "System Events"
set apps to every process whose visible is true
if ((count of apps) = 0) then return
end tell
repeat with i from 1 to (count of apps)
tell application "System Events"
set anApp to application file of (item i of apps)
end tell
tell application (anApp as string)
set resizableAppWindows to (every window whose resizable is true)
end try
repeat with ii from 1 to (count of resizableAppWindows)
set appWindow to item ii of resizableAppWindows
set bounds of appWindow to {10, 35, (screenWidth - 10), (screenHeight - 80)}
end repeat
end tell
end repeat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.