Skip to main content
January 14, 2011
Question

Launching javascript from RoboHelp

  • January 14, 2011
  • 3 replies
  • 977 views

I have written a couple of Javascript scripts to assist my RoboHelp users.

1. How do I make them appear in the Tools->Scripts menu item without making my users browse for them? (Simply copying them to "C:\Program Files\Adobe\Adobe RoboHelp 8\RoboHTML\presets\scripts" does not work).

2. How do I remove irrelevant sample scripts (EclipseHelp, Link Converter, Word Count) from the menu? (Simply deleting these files from "C:\Program Files\Adobe\Adobe RoboHelp 8\RoboHTML\presets\scripts" does not work).

This topic has been closed for replies.

3 replies

January 14, 2011

Belay that question, I have discovered the answer myself.

To add scripts to the menu bar, first copy the script files to "C:\Program Files\Adobe\Adobe RoboHelp 8\RoboHTML\presets\scripts." Restart RoboHelp if it is already running otherwise start RoboHelp and select "View->Toolbars->Customize..." A new dialog will appear titled "Customize." Select the "Commands" tab and in the left-hand "Categories" pane select the "Scripts" item. The scripts you have added will appear with other commands in the right-hand "Commands:" pane. You can now "grab" one of the script names and drag it to any point on the menu bar; I have chosen to place my scripts directly under the "Tools" menu.

So long as the "Customize" dialog is open you can also "grab" items from the menu bar and drop them onto the "Customize" dialog, which will remove them from the menu bar.

Note that neither deleting scripts from the file system, nor removing them from the Script Explorer pod (which maintains scripts in a folder in each user's "Application Data\Adobe" area), will cause them to be removed from the Tools->Scripts menu; to accomplish that, the menu bar must be customized as explained above.

Captiv8r
Legend
January 14, 2011

Hi there

Are these scripts that your users will be executing from within RoboHelp to accomplish certaing things in the RoboHelp environment? Or are they scripts they will incorporate with their topics that will influence things in the outputs created by RoboHelp?

Cheers... Rick

Helpful and Handy Links

RoboHelp Wish Form/Bug Reporting Form

Begin learning RoboHelp HTML 7, 8 or 9 within the day!

Adobe Certified RoboHelp HTML Training

SorcerStone Blog

RoboHelp eBooks

Peter Grainge
Community Expert
Community Expert
January 14, 2011

The supplied scripts are part of Adobe's ExtendScript. Go to View > Pods > Script Explorer from where you can delete unwanted scripts.

You can also import scripts there and the JS extension is shown.


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.