I’m able to add a Notification Listener to the document “close” event. But I’d like to get access to the “beforeClose” as is available in Adobe InDesign (via ExtendScript). Is that something that exists or is planned?
Here is what I’m using to call a function on the close event:
require('photoshop').action.addNotificationListener([ { event: "close" } ], psDocumentEvents_onClose);
where “psDocumentEvents_onClose” is a function that gets the event and some document details (alas, not enough details).
By the time “close” happens, the document is already closed. I’d like the opportunity to do things before it closes.
jsw