I'm developing an extension on Photoshop and I need to detect the closing of a document to send information to the server. My research did not lead me to any solution.
Is there not an event like on ID like :
app.addEventListener('beforeClose', detectClose);
The only solution I have is to store the open documents in an array and make a timer that every x seconds checks if the old array is the same as the new one but it's not a great solution.
Thank you in advance !