Skip to main content
Inspiring
May 22, 2014
Question

Import FrameMaker info new RoboHelp project with extendscript

  • May 22, 2014
  • 2 replies
  • 180 views

Hi,

I have done the following in robohelp 11 from Adobe Technical Communication Suite 5

1) select file|new|project

2) select import tab

3) Select the FrameMaker Documents option icon

This works quit well. I get a new RoboHelp project.

I would like to do the same via a RoboHelp extendScript but I can't get it to work.

Does anyone have some hints or good exampels to be inspired from?

Thanks

Alex

This topic has been closed for replies.

2 replies

Willam van Weelden
Inspiring
May 22, 2014

It does depend on how fancy you want to make it. Creating a GUI with

file picker is quite a bit of work.

But if you only want a script to create a new project and import an FM

book, that's not too hard. For example:

RoboHelp.newProject('', 'MyProject', 'C:\temp\rh\scriptproject',

'MyProjectTitle',);

RoboHelp.project.importFrameMakerDoc('D:\FM\FMBook.bk','FMFolderinRH','D:\FM\FMBookTOC.fm','RHTOCName',true,'RHIndexName','RHGlossary');

(Untested)

Run RH via command line with the script name as parameter: robohtml.exe

-x script.jsx

There is not much information on ExtendScript in RoboHelp. You can find

two introductory articles in the RoboHelp Developer Center to get you

started: http://www.adobe.com/devnet/robohelp.html

If you want to do something more advanced, I have a free RH library for

extendscript to make working with scripts easier. It includes functions

as reading/writing files, setting context sensitivity, saving settings

and more. See

http://www.wvanweelden.eu/product/robohelp-extendscript-library

Kind regards,

Willam

Jeff_Coatsworth
Community Expert
Community Expert
May 22, 2014

You may want to check this scripting forum out - https://forums.adobe.com/community/framemaker/extendscript?view=overview – there’s also some Extendscript resources linked on that page