Skip navigation
Currently Being Moderated

What's the method for updating a book?

Jun 1, 2012 11:19 AM

I use a variation of FrameMaker 10's FM_Outputs_CondText.jsx to automate generation of PDFs.


What do I need to add to force a book update?


It looked to me as if it were doing that, but I just noticed that the build date variable in the front matter is updated only when I manually update the book.

  • Currently Being Moderated
    Jun 4, 2012 1:52 PM   in reply to rlauriston

    The FrameMaker 10 Scripting Guide lists all the objects and methods. For the Book object, there is an UpdateBook method. I guess that is the one you are looking for. It is described on pages 435 and following.


    Good luck

    Mark as:
  • Currently Being Moderated
    Jun 4, 2012 1:56 PM   in reply to rlauriston

    To be a little more elaborate: I checked the script you mentioned and it only updates cross-references when opening a book and its files. That is not the same as updating the book and all its variables. You do need to use the Book.UpdateBook method for that explicitly, after first opening all files in the book. That amounts to the same as manually updating the book.


    Ciao again

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points