In a system that is Lisp all the way down like Medley Interlisp you get scripting for free. Pretty much everything has a Lisp API that can be called or inputs data.
Here I inserted in the TEdit rich text editor a table of square roots formatted by a short user function evaluated in the REPL at the top left, and a datestamp returned by evaluating the DATE system function in the small input box (evaled as soon as the right parenthesis is typed, so omitted for clarity).