Skip to main content
K.Daube
Community Expert
Community Expert
July 3, 2013
Answered

File name of current document

  • July 3, 2013
  • 1 reply
  • 730 views

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

This topic has been closed for replies.
Correct answer K.Daube

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

1 reply

K.Daube
Community Expert
K.DaubeCommunity ExpertAuthorCorrect answer
Community Expert
July 5, 2013

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