Jul 23
An AppleScript/Java solution to move and resize windows
Cats: News|
I have been always extremely annoyed by the fact that one cannot resize the windows on Mac OS X using all four edges of the window. In fact, that is one of the most aggravating things for me about using a Mac. Another issue is that one cannot use the keyboard to move and resize the windows. I was aggravated enough to write a tool to address just those issues: MoveResize (free and open source). The MoveResize tool requires that System Preferences » Universal access » Seeing » Enable Access for Assistive Devices is checked.
How it works:
The implementation uses AppleScript to get the frontmost window and its bounds. It sends the bounds rectangle to a server implemented in Java over a socket connection. The Java server takes the screen shot of the full Desktop and uses it as the Image label (a JLabel with ImageIcon) as the content pane of an undecorated JFrame which has the same bounds as the Desktop...
How it works:
The implementation uses AppleScript to get the frontmost window and its bounds. It sends the bounds rectangle to a server implemented in Java over a socket connection. The Java server takes the screen shot of the full Desktop and uses it as the Image label (a JLabel with ImageIcon) as the content pane of an undecorated JFrame which has the same bounds as the Desktop...
Leave a Reply
You must be logged in to post a comment.
Subscribe
