Skip to content

Instantly share code, notes, and snippets.

@rngtng
Created September 14, 2010 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rngtng/579372 to your computer and use it in GitHub Desktop.
Save rngtng/579372 to your computer and use it in GitHub Desktop.
example Apple script to autoarrange windows
#http://superuser.com/questions/23769/how-to-arrange-application-windows-on-mac-os-x
tell application "Tweetie"
activate
set i to 1
set the bounds of first window to {(109 + (20 * i)), (10 + (10 * i)), (1164 + (20 * i)), (786 + (10 * i))}
end tell
/**
set _theWindows to
#repeat with i from 1 to number of items in _theWindows
set this_item to item of _theWindows
#http://superuser.com/questions/23769/how-to-arrange-application-windows-on-mac-os-x
tell application "Tweetie"
activate
set win to window
set item to item of window
set i to 1
set the bounds of this_item to {(109 + (20 * i)), (10 + (10 * i)), (1164 + (20 * i)), (786 + (10 * i))}
#end tell
**/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment