Skip to main content
February 21, 2013
Question

Script to apply a style to currently selected text

  • February 21, 2013
  • 1 reply
  • 780 views

I can only find example scripts that work on complete files. What I want, is a script that works on currently selected text.

If I can create a macro that applies a specific paragraph style to all currently selected paragraphs, or a character style to currently selected text, I can put that style under a shortcut key.

That way, "emphasis" or "strong" can be put under ctrl-b, for example.

If there is another way to achieve the same (in RH 9), I would be interested to hear it as well.

Kind regards,

Erwin Timmerman

This topic has been closed for replies.

1 reply

Willam van Weelden
Inspiring
February 22, 2013

Nope.. Scripts do not have any information about opened files, let alone text selection. A macro is the only way to go.

Greet,

Willam

February 25, 2013

In that case, how can I create a macro in RoboHelp that assigns a specific style to a shortcut key?

RoboColum_n_
Brainiac
February 25, 2013

I think this maybe a case for a tool like Macro Express. There is nothing in RoboHelp that can help.