I've made a Mac application with Apple Script that does the following interaction with Adium (Mac's version of Pidgin):
- Get all the contacts that are online when I call a CLI script
- Send a message to a specific contact
I also use a plugin called PipeEvent for Adium that send the name and the message to standard input every time a receive a new message.
I jump through all those hoops because I want to get messages sent to an account that pidgin and the computer it will be running on will have access to on my mobile device.
I was thinking about trying to setup something similar on a Raspberry Pi running Pidgin instead of my Macbook running Adium. However, I am not familiar with GUI automation tools on Linux or even if there's a better way to achieve what I want (communicate with Pidgin programmatically).