Scripting Windows Apps with Ruby

Steve Yegge explains how to use Ruby to script your Windows applications. His first example demonstrates how to load Internet Explorer, get it to navigate to a certain Web page, and scrape the content in just five lines of code, like so:

require 'win32ole'
ie = WIN32OLE.new('InternetExplorer.Application')
ie.navigate("http://{internal-website}/your-desired-url")
sleep 1 while ie.readyState() != 4
html = ie.document().documentElement.outerHTML
ie.quit()

Excellent! This makes me wonder if there's a similar mechanism (not AppleScript) for OS X. Anyway, learn more, including more complex demonstrations, at Steve's post.