Created
January 19, 2011 17:20
-
-
Save eager/786477 to your computer and use it in GitHub Desktop.
Resize a Fake.app window with AppleScript
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
set myHeight to 600 | |
set myWidth to 800 | |
tell application "Fake" | |
set theWindow to window 1 | |
-- bounding rect is { left, top, right, bottom }. The index is one-based. | |
-- Note: this is the size of the window. The actual viewport size will be smaller. | |
set theBounds to the bounds of theWindow | |
set (item 3 of theBounds) to ((item 1 of theBounds) + myWidth) | |
set (item 4 of theBounds) to ((item 2 of theBounds) + myHeight) | |
set bounds of theWindow to theBounds | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment