This is a sample file that runs a script on the client that, if it can, opens an xterm window.

The point here is that, in addition to the way you can set up your preferences so that files with certain extensions will launch a corresponding helper app, that's not the only way to launch one. But, you do have to have certain tools ready to be launched in order for me to do this, which is not too practical in a distance-learning setting, where everyone has their own unique set-up. But I did want you to know it was possible...