Why write1 Windowpane when there are already other perfectly reasonable solutions that do the same thing? The theory is that Mjolnir is three things:
- A keyboard shortcut listener, that runs Lua scripts when certain keyboard shortcuts are entered.
- Lua bindings for Cocoa’s accessibility features that can control the sizes and positions of windows.
- Lua scripts that calculate window sizes and positions on a grid.
The reason I wrote Windowpane is that there’s so much software here that just does the same thing as other software I already have on my machine. Let me explain.
Let alone use ↩︎
Programmers on OS X will still benefit from learning AppleScript. OS X is not customizable in the ways other operating systems are. Mac applications don’t have complex configuration files, and core components (like a window manager) can’t be swapped out for another implementation. But it excels at customization through scripting. “The Mac Way” is streamlined applications that eschew configuration for a solid implementation of the most common case.
Gruber likens this approach to open source software, as an alternative way programmers can adapt software to their needs:
The question I’ve been pondering the last few weeks, though, is why I’m not as bothered by the [closed source] status quo as Bray. I can write a little code, and my brain is chockablock with niggling little complaints and feature requests regarding the software I use. But I feel no strong urge to see any of the closed source apps I use released as open source. Why?
The other day, while tinkering with a small project in Script Debugger, the answer hit me — I already do hack together tiny little additions and modifications to the software I use, with scripting. And for more serious extensions, many of the apps I depend on have plug-in APIs.
Even beyond the benefit of designing features to one’s own specifications, it’s also a just plain solid solution to a Really Hard Problem that still exists today: inter-application communication and data sharing. The implementation itself is important.