Copy link to clipboard
Copied
Hi All,
In the past, I was able to use the EclipseHelpWithIndex.jsx script with the modification:
function AddTopic(tNode)
{
var keyName = tNode.attribute(NAME);
var url = tNode.attribute(URL);
var keyXML = XML(String("<entry keyword=\"" + keyName + "\"/>"));
var topicXML = XML(String("<topic href=\"" + url + "\"/>"));
keyXML.appendChild(topicXML);
return keyXML;
}
But I have since changed from a Windows XP to a Windows 7 system. I am running Robohelp 9 as Administrator. When I run this script now, I see an error:
undefined is not an object Line 181, Column 1.
Line 181 is:
ecIndex.write(indexXML.toXMLString());
Any thoughts as to why this is happening?
Copy link to clipboard
Copied
In what version of RoboHelp were you using this script when it was working.
what seems by your statement is either location to which you are writing is not writable or the index file is not a accessible.
try placing the RoboHelp project in some non Win7 location (like folder in another drive- non OS drive) and running the script .
Hope this might help
Regards
Ashish
Copy link to clipboard
Copied
RoboAsh (Ashish)
On both systems, I was using Robohelp 9.
Lauren
Copy link to clipboard
Copied
HI Lauren,
Did you tried moving the project to Non OS drive and runing the script?
Ashish
Copy link to clipboard
Copied
Hi Ashish,
I just changed the permissions on the output folder nad was able to write successfully. thanks for the tip.
I think Windows 7 does a great injustice to its users by making so many directories read-only.
Lauren
Copy link to clipboard
Copied
Great to know that I was some help.
thanks
Ashish
Copy link to clipboard
Copied
Just Mr. Bill trying to protect us from ourselves ;>)