From: John Joyce Date: 2008-02-18T01:40:48+09:00 Subject: Re: Send keystrokes to Firefox or Safari? On Feb 16, 2008, at 9:44 PM, Stedwick wrote: > Is there a way to send keystrokes to Firefox or Safari on Mac OS X > Leopard using Ruby? I don't want to remote control the web using watir > or anything, I just want to send keystrokes (ie. I want to be able to > type into a text box really fast hehe). > > Anyone know how to do this? Thanks! > You will need to use AppleEvents, specifically System Events, and AppleScript. You'll want to use rb-appscript as the Ruby library for AppleScript. Get ready for a lot of stumbling in the dark...