found an error when I cut and paste into the folder - am missing the last } at the end of the
myTrustedSpecialTaskFunc = app.trustedFunction(function(doc,path)
{
// Privileged and/or non-privileged code above
app.beginPriv();
mySaveAs(doc,path);
app.endPriv();
// Privileged and/or non-privileged code below })
missing the } to close the function. Not sure if that would generate the error but will have to wait till tomorrow until IT can load the updated js file to my c drive as I do not have authority