Highlighted

How To Write A Simple Script (RoboHelp 2019)

Community Beginner ,
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.

Adobe Community Professional
Correct answer by Peter Grainge | Adobe Community Professional

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?

 

Topics

New UI, Scripting

Views

71

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

How To Write A Simple Script (RoboHelp 2019)

Community Beginner ,
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.

Adobe Community Professional
Correct answer by Peter Grainge | Adobe Community Professional

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?

 

Topics

New UI, Scripting

Views

72

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
Adobe Community Professional ,
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?

 

www.grainge.org for free RoboHelp & Authoring info. Use the blue Reply button at the top to help me help you.
The black Reply link nests replies and they sort out of order.

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
Reply
Loading...
Community Beginner ,
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
Reply
Loading...
Amebr LATEST
Adobe Community Professional ,
Jun 23, 2020

Copy link to clipboard

Copied

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
Reply
Loading...