Skip to main content
Participant
March 9, 2023
Question

Contact Sheet II Script Syntax Error Number 60

  • March 9, 2023
  • 1 reply
  • 331 views

Working as pseudo-IT for a Graphic Design classroom on Macs, the standard user account is throwing the following error whenever the Contact Sheet II script is used:

 

- Not well-formed (invalid token)
File: /Applications/Adobe Photoshop 2023/Presets/Scripts/ContactSheetII.jsx
Line: 1247
Error Name: SyntaxError
Error Number: 60
Line: (1238)    
Line: (1239)      var str = file.read();
Line: (1240)      // Need additional error checking here...
Line: (1241)    
Line: (1242)      rc = file.close();
Line: (1243)      if (!rc && psx.IOEXCEPTIONS_ENABLED) {
Line: (1244)        Error.runtimeError(psx.IO_ERROR_CODE, psx.fileError(file));
Line: (1245)      }
Line: (1246)    
Line: (1247) >>   return new XML(str);
Line: (1248)    };
Line: (1249)    
Line: (1250)    //
Line: (1251)    // Function: writeXMLFile
Line: (1252)    // Description: Writes an XML object to a file
Line: (1253)    //              psx uses UTF8 with \n
Line: (1254)    // Input:  fptr - a file reference
Line: (1255)    //         xml - an XML object
Line: (1256)    // Return: a File object
Line: (1257)    //

[ContactSheetII.jsx]
main()
_main()
execCSII_UI([Object:[object Object]])
exceptionMessage([Error:SyntaxError: XML error in line 3\n- Not well-formed (invalid token)])

 

This error is thrown every time, but only on the standard user. The admin user can use this script with no errors. I have tried uninstalling/reinstalling several times, uninstalled and removed all related files in the Applications folder before reinstalling, and looked at the syntax myself. Based on my (admittedly somewhat limited) knowledge of JavaScript syntax, the indicated line has no syntax errors. The computer is completely up to date, as is Photoshop (Ventura 13.2.1 and Photoshop 24.2.0 release). Any ideas on how to fix this?

This topic has been closed for replies.

1 reply

John Metzger
Adobe Employee
Adobe Employee
March 10, 2023

Intel or ARM Macs or both? This seems like a permissions issue given that the admin account can run the script without any issues. 

Director of Product Management - Adobe Photoshop