Created
March 14, 2012 08:15
-
-
Save alialo/2035059 to your computer and use it in GitHub Desktop.
Set window sizes to 76% and 24% of desktop size
This file contains hidden or 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
tell application "Finder" | |
set {a, b, c, d} to bounds of window of desktop -- the bounds of the desktop | |
tell application "System Events" to tell (process 1 whose frontmost is true) | |
set position of window 1 to {a, b} | |
set size of window 1 to {((c / 100) * 76), d} | |
end tell | |
end tell |
This file contains hidden or 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
tell application "Finder" | |
set {a, b, c, d} to bounds of window of desktop -- the bounds of the desktop | |
tell application "System Events" to tell (process 1 whose frontmost is true) | |
set position of window 1 to {((c / 100) * 76), b} | |
set size of window 1 to {((c / 100) * 24), d} | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Useful for keeping the browser on the left and Twitter on the right, for example. Launch using Alfred or similar.