Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Contributor ,
May 09, 2012 May 09, 2012

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?

906
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 09, 2012 May 09, 2012

Hi,

Since you’ve confirmed that the manual route does work, I think it’s safe to assume it’s a bug. I’m sorry to see that your first encounter with scripts gives you so much woe.

Greet,

Willam

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
May 09, 2012 May 09, 2012

It's hardly my first encounter with scripts, only with ExtendScript.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 09, 2012 May 09, 2012
LATEST

Ah well, scripting in RoboHelp then

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp