Missing Links and text overrides

I am wandering if it is possible to search a book on missing links and text overrides before exporting to pdf. I want to get a list with the error, including the page number and document name.

Is here anyone who can help me with this?

Does you absolutely need it to be done with applescript? The Preflight panel in Indesign can be customize and when you export PDF’s or print there is already a warning for the 2 things you mentionned in your post.

yes you are wright… but my book has 50 documents and I do have to run a script for change visibility of some layers.
I want to check at the same moment the missing links and the text override so I can save some time… Don’t you think I can save time checking this things before preflighting the book?