Ask for Help
Cocoa applications can be made scriptable with AppleScript. Unfortunately, nobody at the office this morning had experience with this.
SF Pivots should check out the free PCs in the ops area. These were cutting edge linux development machines several years back, and now they and there parts are up for grabs!