I am new in using ExtendScript. I have to convert an old documentaion to RoboHelp and i wanted to use scripts for that. But acutally i am stucking at import a HTML file. I use the method Project.importHtmlFile (see my code below) and the script throws no error. But the file will not imported in the project and the method returns false (see my console output below).
Has anyone an idea, what i am doing wrong? Or is there a way to get more informaiton about the fail?
var project = RoboHelp.getCurrentProject();
var result = project.importHtmlFile ("C:\Users\kgr\Desktop\RoboHelpTest\Zweites_Thema.html", "Test");
$.writeln("Import Result: " + result);
Import Result: false
Maybe import the file manually and see if that's successful. If it doesn't import, the log might show you what's going wrong so you can fix it in your script.
And have a look at the sample scripts Adobe provides. There's one called Master Page Import.jsx that might help.
(By the way, most of us aren't coders here, so we probably can't give you much help script-wise.)