there is no before save event.
@Vamitul – great, you are back!
Hm. Yes: BEFORE_CLOSE.
But this event is only available for inDesign's Document objects, not for Book objects.
So, I do not think, this will work.
yes for me Book.addEventListener dosn't work
i try but i can't intercept nothing
thanks for your answer
will also not work.
Only Window objects (layoutWindow, storyWindow) that will be closed and Document objects that will be closed can be listened to.
No Book objects.
All ExtendScript code: