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

Import FrameMaker info new RoboHelp project with extendscript

Community Beginner ,
May 22, 2014 May 22, 2014

Copy link to clipboard

Copied

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

Views

140

Translate

Translate

Report

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
Community Expert ,
May 22, 2014 May 22, 2014

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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 22, 2014 May 22, 2014

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

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