Adobe RoboHelp 8: Scripts Make Quick Work Out of Redundant Tasks

by Kevin Siegel Follow us on Twitter View our profile on LinkedIn

If you have ever used Microsoft Word to record or write a macro using Visual Basic, you already appreciate how much time macros can save you by automating repetitive tasks.

While RoboHelp does not support macros, scripts (which are coded instructions) provide the same functionality. RoboHelp ships with a few helpful scripts and if you are an application developer, you can create your own scripts from within RoboHelp or import them.

Run a Word Count Script

     

  1. Open a RoboHelp project
  2. Open the Script Explorer by choosing View > Pods > Script Explorer

    The Script Explorer pod appears at the far right of the window by default.

    Script Explorer pod

  3. Click the plus sign to the left of the Sample Scripts folder to expand the folder
  4. On the Script Explorer pod, right-click the Word Count.jsx script and choose Run

    The word count is quickly completed and the total Word Count appears at the bottom of the Output View pod.

    Word count complete

Edit a Script

Okay, so the word count script you just learned about is nice and all, but hardly anything to write home about. Get your pen and paper out… this next script rocks.

How many times have you found a web address in your project that wasn't correct? And how many times has that Web address needed to be corrected in multiple locations? This next script will let you fix URLs project-wide.

     

  1. On the Script Explorer pod, right-click the Link Converter.jsx script and choose Edit

    The Extend Script Toolkit opens.

  2. On line 10 of the script, replace http://www.oldurl.com with the address you want the script to find and correct
  3. Replace http://www.newurl.com with the correct address

    URL changed

  4. Save and close the script (choose File > Save and then choose File > Exit)
  5. On the Script Explorer pod, right-click the Link Converter.jsx script and choose Run

    Any files using the incorrect Web address are opened and corrected. You will be prompted to save each file that has been edited.

***

Need to learn RoboHelp… and fast? Join my live, two-day RoboHelp class later this month.

***

Follow me on Twitter

Leave a Reply

Discover more from The Logical Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading