

- #Bettersnaptool for osx lion mac osx#
- #Bettersnaptool for osx lion software#
- #Bettersnaptool for osx lion code#
The sample script provided here uses the 3 x 30″ screens (at 2560×160 each) so you can probably imagine how those offset values are supposed to work. The reason for that is because I’m lazy and I want to re-use the coordinates for position and size and be able to offset an entire series of function calls to another monitor. Note that the script uses an offsetX and offsetY that is used in the actual repositioning process. The functions are documented in the script so there’s not much more to waste time on. These are to help you (through the Events in the AppleScript editor) to show a window name, position, size. The bulk of the script defines a few functions, then goes into a series of repositioning/sizing instructions and at the tail end you will find some commented helper functions that are called. In that case (like the Skype Online Contacts tool window) the WithName function will work just fine. Sometimes, it does not, and in some other cases (like say, Skype) it is possible the window index will not be consistent. In most cases a window index of 1 will work for most applications and their windows. The reason there are two functions is because the RepositionWindow function takes the window index (or window “number” if you will) as a paramter while the RepositionWindowWithName will take a title string as its parameter. There are two basic functions to reposition and size a window RepositionWindow and RepositionWindowWithName. Let me talk you through a few details of the script. You can DOWNLOAD THE SCRIPT RIGHT HERE FROM THIS LINK.
#Bettersnaptool for osx lion mac osx#
Now, back to the AppleScript thingie I hacked up to provide myself the much missing WiLMa basic functionality that I have sorely missed on Snow Leopard and Lion, and every other Apple Mac OSX incarnation. Now, if Andreas would be so kind as to take all the WiLMa features and implement those in BetterSnapTool I would be happy to pay a lot more for it, and so should you! Get it through the AppStore for a price you just can’t beat. If you are looking for something WiLMa-like (but not quite) I can highly recommend this utility. While I got your attention I want to divert your attention for a short moment to the BetterSnapTool by Andreas Hegenberg.
#Bettersnaptool for osx lion software#
As a real software developer it makes my toes curl. But heck, who cares, it worked and I really have no ambition to learn AppleScript.
#Bettersnaptool for osx lion code#
In fact, I have never touched AppleScript until the other day when I hacked together my first few lines of code and then did the “google programmer” thing by basically solving every little step along the way by looking it up online in a quick and dirty way. I hope it works for you as well as it works for me, if not, blame it on my total inexperience with AppleScript. But I will provide you with something that has worked for me along similar lines and was hacked up in a few hours of using AppleScript. Unfortunately, no, I am not presenting you with a free version of Windows Layout Manager (WiLMa) for Mac/OSX here.
