Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


How To Write A Simple Script (RoboHelp 2019)

Community Beginner ,
Jun 23, 2020 Jun 23, 2020

Copy link to clipboard

Copied

Hello! I would like to use the RoboHelp 2019 scripting functionality to perform what seems like (to me) a simple task, but I have zero experience using scripting and the Official documentation doesn't seem to cover it at all.

 

Basically I'd like a script that goes through a specific folder that I point to, and then takes the title from the metadata htm title and adds it to the index metadata of each document in the folder.

 

Any help writing this, or pointers to simple resources that I can learn from, would be very much appreciated.

TOPICS
New UI, Scripting

Views

169

Likes

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

correct answers 1 Correct answer

Adobe Community Professional , Jun 23, 2020 Jun 23, 2020
The task might be simple but scripting isn't. It's mostly a task for developers. In 2019 the scripting is javascript so maybe you have a friendly developer or one who can be corrupted with doughnuts?

Likes

Translate

Translate
Adobe Community Professional ,
Jun 23, 2020 Jun 23, 2020

Copy link to clipboard

Copied

The task might be simple but scripting isn't. It's mostly a task for developers. In 2019 the scripting is javascript so maybe you have a friendly developer or one who can be corrupted with doughnuts?

 

Likes

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 Beginner ,
Jun 23, 2020 Jun 23, 2020

Copy link to clipboard

Copied

Thank you for the reply Peter. As It happens I do have support from the dev team, so I'm sure I can get them to look at this for me (the person I'm thinking of I can bribe with Pringles rather than donuts!).

Likes

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
Adobe Community Professional ,
Jun 23, 2020 Jun 23, 2020

Copy link to clipboard

Copied

LATEST

Just some random info for people following along who might want to dabble (that's what I'm currently doing). It's brief, but hopefully will get those with enough knowledge to be dangerous started. 🙂

 

There are a bunch of scripting libraries built in to RH; electron.js and node.js being key ones. Also jquery. So start here for researching js scripting.

 

To get in to debug in RH, press Ctrl+Alt+D.

 

Then, so you don't have to debug all of Adobe's scripts, open scripting.js and click the pretty print icon in the bottom left of the code window. (I really wish this was an automatic thing as you have to do this each time. 😞   )

 

Search for the function 'static execute(e)'

 

Set a breakpoint on a = new Function(n.code)

 

Then when you run your script, the code will break, click Step Into and you'll be able to debug your script.

Likes

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