Although the technical aspects aren't quite that important to us (Ashley is as cunning as a fox and a top-level programmer), there's not just one way to realize things. For example, there's IAC and IPC (Inter Application/Process Communication). Its purpose is to control another app while it is running...
But one thing's for sure: If it is doable, then Ashley will find a way.