Javascript error number 8 : syntax error using Pagestaker script
Windows 10 / Indesign 19.0.1
I just had to reinstall my system on a new harddrive. Copied all my scripts to the new installation from the old system drive but when I try to run the Pagestaker script I get an error:
Error number 8 / Syntax error
in line 25 :
app.doScript(libPath, ScriptLanguage.JAVASCRIPT);
Here's the entire script in case there's something else:
app.insertLabel('com.rorohiko.activescriptpath', '');
var scriptFile;
if ($.fileName && $.fileName != "")
{
scriptFile = new File($.fileName);
}
if (! scriptFile || ! scriptFile.exists)
{
if (app.activeScript instanceof File)
{
scriptFile = app.activeScript;
}
}
if (scriptFile)
{
var libPath = new File(scriptFile.parent + "/PageStakerLib.jsxbin");
if (! libPath.exists)
{
libPath = new File(scriptFile.parent + "/PageStakerLib.jsx");
}
if (libPath.exists)
{
app.doScript(libPath, ScriptLanguage.JAVASCRIPT);
PageStakerLib.processCurDoc();
}
}
I don't know anything about javascript and I didn't modify this script at all, any help will be greatly appreciated.
