Double clicking file loads it in existing window

Blitz3D Forums/Blitz3D Beginners Area/Double clicking file loads it in existing window

I was wondering whether it was possible in a Blitz program to load files into the existing application, rather than creating another instance. In fact I'd like to avoid multiple instances at all costs.

If the program isn't open, double-clicking the data file (with the right extension, say file.ext) will launch my program and load the file in there.

If the program *IS* open, I don't want another session making, but rather the new file to completely replace the existing one.

Is this possible?