Skip to main content
luca_cres
Participant
March 9, 2015
Question

Book Event

  • March 9, 2015
  • 1 reply
  • 370 views

Hello

I don't undestand how book events work

i must execute a script before book close but i don't intercept the listener

can you help me?

_BOOK_LISTINO=app.activeBook

_BOOK_LISTINO.addEventListener("beforeSave",myfunction)

No events work in book

can you tell me where i can found some explanations

Luca

This topic has been closed for replies.

1 reply

Vamitul
Legend
March 10, 2015

there is no before save event.

try BEFORE_CLOSE

Community Expert
March 10, 2015

@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.

Uwe

luca_cres
luca_cresAuthor
Participant
March 11, 2015

yes for me  Book.addEventListener dosn't work

i try but i can't intercept nothing

thanks for your answer

Luca