Take a look at the send command, you can do just that (for Tk applications, not simple Tcl applications). I do this all the time from my Emacs (connecting to Tk application launches).
Tcl / Tk will not allow you to enslave another process, however, using the send command, you can easily send any commands you want. Just find the βnameβ of another interpreter using [winfo interps] (note: the name of your Tk application can be obtained / set using [tk appname] . At this point, any command that you want to execute in another interpreter will be sent by evaluating
send $other_app tk_dialog . "Sample Dialog" "See, it this easy." "" 0 Ok
source share