Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
It's hardly my first encounter with scripts, only with ExtendScript.
Copy link to clipboard
Copied
Ah well, scripting in RoboHelp then ![]()
Find more inspiration, events, and resources on the new Adobe Community
Explore Now