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

The Open Sound Control (OSC) application is started from another program and state info is sent to all the widgets. The problem is that the my program often sends the info to early and the widget values are not set. I could add a delay but that needs to be uncomfortable long. I have tried to send questions to some widgets and wait for the result but I get a reply before the values of widgets can be set. How could I find out when the widgets are ready to receive messages to set there value (when all widegds are intitialized)?

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

Yes, great, it’s working fine now. A bonus is that I can know which file is loaded when the user loads a new one.

Thank you!