public
anonymous / gist:5020503
Created

  • Download Gist
gistfile1.applescript
AppleScript
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)
try
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.