Friends,
Suddenly I have found the answer (searching in the oject reference for "filename" rather than "file name" - "pathname" in the FDK reference):
alert ("Now processing book\n"+ app.ActiveBook.Name); alert ("Now processing document\n"+ app.ActiveDoc.Name);