Startup of the OSC application, how could I find out when it's ready to recieve messages?

This could be exactly what you’re looking for : On loading of template, send osc?