1 Reply Latest reply: Jul 5, 2013 3:32 AM by K.Daube RSS

    File name of current document

    K.Daube Community Member

      Hello friends,

       

      Now that I have managed to find citations (special strings) in paragraphs, footnotes, tables and table footnotes - all with your generous help - I need to find out the file name (path) of the current document (or book).

      All that i have found is how to get the file name of a book component (well, that i'll need also, but later).

       

      How can I find the file name of the current document (that is not part of a book) and

      How can I find the file name of the current book?

       

      Thanks again for Your help

      Klaus

        • 1. Re: File name of current document
          K.Daube Community Member

          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);