Introduction - those who prefer to automate with Ruby instead of AppleScript will find a good documentation for a Ruby AppleScript Bridge here.