Skip navigation
Currently Being Moderated

RH script: updateAll(true) does not add new file to TOC

May 9, 2012 10:46 AM

I use this script to update my RoboHelp project from FrameMaker source before generating WebHelp:

 

var projectPath = "C:\\<path>\\<RH project>.xpj";

main();

function main()

{

        if(projectPath == "")

        {

               //Error!. Quit RoboHelp

               alert("Project path is not defined. \nPlease update the 'projectPath' variable in the script.");

               RoboHelp.quit();

        }

        RoboHelp.openProject(projectPath); // open the project

        RoboHelp.project.updateAll(true); // force-update FrameMaker source

          RoboHelp.closeProject(); // close the project

        RoboHelp.quit(); //quit RoboHelp

}

 

I added a new file to the FrameMaker book and it failed to add the new file to the TOC. When I ran the Force Update All command manually, it worked.

 

Do I need to add something or is that a bug?

 
Replies

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