Created
September 14, 2010 17:08
-
-
Save rngtng/579372 to your computer and use it in GitHub Desktop.
example Apple script to autoarrange windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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