I am trying to find the API to set the style in RoboHelp Script. In the Clean Project Example (as in the following code snippet), it shows how to find a undefined style and remove that style. In this case, instead of token.removeAttribute("style"), is it possible to set a style, for example, a paragraph tag, say "body". Also, is it possible to find a paragraph tag, say "Normal", and replace it with "body" paragraph tag.
The above will assign the class 'myStyleName'. You'll, of course, want to check the type of tag and whether you need to assign the style.
Something that I have been having fun with: you'll have to save before closing the TokenManager. Otherwise you'll be wondering why the script won't work. Embaressed to say I've forgotten this more than once...
tokens.close();//Close the TokenManager or you'll run out of memory