Skip to content

Instantly share code, notes, and snippets.

@eager
Created January 19, 2011 17:20
Show Gist options
  • Save eager/786477 to your computer and use it in GitHub Desktop.
Save eager/786477 to your computer and use it in GitHub Desktop.
Resize a Fake.app window with AppleScript
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