Filed under: Developer, Macintosh, Apple, Open Source
Ruby meets AppleScript with RubyOSA
Most days I'm totally happy with my Windows PC, but some days I want a Mac.* I've got a thing for scripting of all kinds, and the days I most want a Mac, it seems, are when I see someone doing something really cool with AppleScript, like RubyOSA. To quote its web site, "RubyOSA is a bridge that connects Ruby to the Apple Event Manager infrastructure. In big words, it allows you to do in Ruby what you could do in AppleScript." It fetches information from OS X apps about their components and then maps them directly to Ruby classes and methods. While AppleScript isn't exactly fugly, I'm a big Ruby fan and seeing it do stuff like this really gets my vitals up. I would love to say "I wish someone would do this kind of thing for Windows apps," but the tragedy is that Windows has no standard scripting interface like AppleScript, and certainly none that is widely implemented.*For the record, some days I want to ditch everything for Ubuntu instead. And now, back to your regularly scheduled not-quite-so-uber-geeky programming.
So, just how good at time waster games are you? Think you've got the stuff? Well, The World's Hardest Game 2.0 doesn't think you do.
Yes, amazingly, it's possible to have a sequel to a game called "The World's Hardest Game". It doesn't seem logically possible, since if the first one was actually the world's hardest, how could another one come along and share the moniker? It made me doubt the name in the first place. That is, until I tried the game.
The mechanics of the game are very simple. You are a small red square, ...
