[Stavros Kassinos] has generously donated an example [http://www.phaseit.net/claird/comp.lang.tcl/examples/IDOMATH.hqx] which demonstrates how to use [Applescript] as an [IPC] mechanism ([Inventory of IPC methods]) 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 [[refer to papers by Alex and JCW?]], and has published several pieces on it, including a three-part series [http://www.itworld.com/AppDev/4061/swol-0119-regex/] for "Regular Expressions [http://www.regularexpressions.com/]. <> Example