remotely controlling GUI elements from the comand line

Fahrvergnuugen

I am the law!
I've found myself wishing there were an easy way to do this several times.

For instance...
I'm on my powerbook on a dial up connection [thus ruling out VNC]. I ssh into my G4 which is on a cable modem. I download a bit torrent torrent file using wget to the G4. I then type "open file.torrent" which launches bit torrent and opens the torrent file.

The problem is, at this stage, bit torrent asks you where you want to save the file. Normally I just click OK and it saves it to the desktop, but there isn't a way [that I'm aware of] to tell the application "OK".

BeOS had an application called hey. You could do things like "hey bittorrent press 'Ok' in window 1". Something like this for OSX would be killer.

I know we have apple script, but that isn't nearly as easy as using a CLI application to control GUI elements. I also don' t know apple script very well at all, so maybe there is a way to make it work similarly.
 
Back
Top