I am already using the plugplug method. I have a html panel and two separate extendscript/scriptUI panels. The latter ones sends an event to the former, to inform it about things it changed. In fact a history of changes is collected. When the file is saved, the html panel responds to the save event and sends the collected info to a database. What I am still missing is a way for the extendscript panel to get a response from the html (e.g. number of events sent during the current session)
The eventadapter looks very useful, but I would have to convert a scriptUI panel into a html one in order to listen to these events?