single ExtendScript for FrameMaker 10 & RoboHelp 9 (TCS 3.5)?

Robert Lauriston robert at lauriston.com
Mon Apr 16 10:12:39 PDT 2012


I posted this on the Adobe FrameMaker Scripting forum but got no
response so far.

I'm trying to automate generation of PDF and WebHelp from the same
FrameMaker source

I have a FrameMaker ExtendScript that sets conditional text for PDF,
updates the book, generates PDF, sets conditional text for online
help, and updates the book. It's a minor variation on
<FM10_INSTALL_DIR>\Samples\ScriptsAndUtilities\Conditional
Text\FM_Outputs_CondText.jsx.

I have a RoboHelp ExtendScript that updates the FrameMaker source
(thanks Willam van Weelden):

var projectPath = "C:\\<path>\\<filename>.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); //Update all linked
documents (pass true for Force update)
}

Is there some way to combine these into a single script, or to launch
the RoboHelp script at the end of the FrameMaker script? More
generally, has anyone seen a sample ExtendScript performing operations
in multiple applications?



More information about the framers mailing list