[Stavros Kassinos] has generously donated an example [http://starbase.neosoft.com/~claird/comp.lang.tcl/examples/IDOMATH.hqx] which demonstrates how to use Applescript as an IPC mechanism [http://mini.net/cgi-bin/wikit/1228.html] for the control of a legacy Fortran application by a thin Tcl wrapper. [Cameron Laird] is exceptionally fond of this architecture of thinly wrapped legacy applications, and has published several pieces on it, including a three-part series [http://www.sunworld.com/unixinsideronline/swol-01-2001/swol-0119.html] for "Regular Expressions [http://www.regularexpressions.com/].