Copy link to clipboard
Copied
When I run the Project Template Generator script I get the following error. Can someone tell me what this is?
Thanks for your help!
Copy link to clipboard
Copied
Without looking into the script code I'd second guess that there is an issue with it at line 49
Are you referring to the Save As Project Template script? It runs OK for me. Was the script changed in any way before running it?
The RoboColum(n) | @robocolumn | Colum McAndrew |
Copy link to clipboard
Copied
I didn't change anything. Just running it "out of the box". I don't know anything about scripting, so doubt whether I can decifer the problem myself by looking at the script.
Copy link to clipboard
Copied
This is the code on line 49:
RoboHelp.project.rename("Template.xpj");
Copy link to clipboard
Copied
I'm using RoboHelp 9. It's called Project Template Generator.jsx.
Copy link to clipboard
Copied
Yep. It runs fine for me. I assume you have a project open when you run it? Can you run any macro (e.g. Word Count)?
The RoboColum(n) | @robocolumn | Colum McAndrew |
Copy link to clipboard
Copied
Hi Colum,
Yes, Word Count seems to work fine.
Copy link to clipboard
Copied
Just a thought, does your project have any special characters in the name (e.g. underscores / slashes). That maybe could be the issue. If it doesn't, try reinstalling the ExtendScipt add on.
The RoboColum(n) | @robocolumn | Colum McAndrew |
Copy link to clipboard
Copied
Hi,
Extendscript is working fine on your machine. Project Template Generator script requires administrator rights as it tries to create template in program files folder area. For this reason please try to run RoboHTML in adminstrator mode. If you are using windows vista or windows 7, you can select run as administator by right clicking the RoboHTML shortcut. If you are running windows XP then you need adminstrator rights.
Do let me know if this fixes the error on script running or not.
Thanks
Praful jain
Copy link to clipboard
Copied
I hadn't had the time to update the thread, but this was indeed the problem!! Thank you for your reply.
Copy link to clipboard
Copied
What was the answer? There is more than one reply.
See www.grainge.org for RoboHelp and Authoring tips
Copy link to clipboard
Copied
Sorry. The answer was that I needed Admin rights to run the script.