Skip to main content
Participant
May 12, 2011
Answered

Bad argument openProject when running SaveAsProjectTemplate.jsx

  • May 12, 2011
  • 1 reply
  • 2027 views

Hi

I have created a RoboHelp 8 project template and rolled it out to the team for use in an upcoming project.

Six authors have been able to load the project then, using the Script Explorer, have run the SaveAsProjectTemplate.jsx script to make it a project template. One author has attempted to run this script and been confronted with the error Bad argument openProject once they accepted the default location.

The installation process was identical for all seven machines, it activated/registered without a hitch and all available updates have been run on the seven machines (we are all on 8.0.2.208).

Does anybody know, please, why this error might be occuring on just one machine?

Many thanks

Nigel

This topic has been closed for replies.
Correct answer Willam van Weelden

Thanks again Colum.

I've run Setup.exe with the bottom option selected, as advised but to no avail.

Our PCs have a C: drive and a D: drive which are not mapped drives. The template we are attempting to save as the project template is located on the D: drive and the 'default location' the script suggests is the En_US folder on the C: drive.

Dare I mention that the PC that does not work is a Windows 7 PC (I should have mentioned this before), so could it be a weird permissions thing?

Thanks

Nigel


Hi Nigel,

I didn't see your last post when I posted my earlier reply. Using Windows 7 may indeed be a problem. I had a problem with writing files when User Account Control was enabled. This blocked the script from writing files to protected locations as C:\Users and C:\Program Files. It didn't produce any errors, the files were simply not created/modified and the script kept running.

Can you disable UAC for now and run the script again?

Greet,

Willam

1 reply

RoboColum_n_
Legend
May 12, 2011

Hi Nigel and welcome to the RH forums. Things to try include:

  1. Running one of the pre-installed scripts (e.g. Word Count).
  2. Reinstalling the Extend Script add on.


  The RoboColum(n)   @robocolumn   Colum McAndrew
Nigel RAuthor
Participant
May 12, 2011

Hi Colum - and thanks for your help.

The Word Count script runs fine on our template (returning 300 words, or so). We're still getting to grips with RH8 and not sure how to re-install the Extend Script add-on - should we uninstall everything and start from scratch or is there a simple way of just re-installing ES?

Many thanks

Nigel

RoboColum_n_
Legend
May 12, 2011

No problem Nigel. Did you run the Word Count on the affected PC? If so, this is unlikely to be anything with the ExtendScript plugin. It maybe worth trying though. If you run the setup.exe for the RoboHelp Office application, you should be able topick and choose which elements are installed. One of them should be ExtendScript. Just select this option only on the affected PC.

One other thought I have is that you mention "default location". Would mapped or networked drives have any bearing on the error?


  The RoboColum(n)   @robocolumn   Colum McAndrew