Skip to main content
Participant
March 22, 2022
Question

script event manager error

  • March 22, 2022
  • 2 replies
  • 276 views

Im trying to access the script event manager option in Photoshop CS5 -win10 - and Im getting this error

(referenceError window does not have a constructor: online 53)

resuming I load before a js file to the script event manager, the option open fine, search the file and add it, everything went right. but now Im trying to access it again send this msg. I have no idea to do next. Im attaching a screenshot about this line.

 

the funcion of the script is to run when I load a psd file and create image automaticaly.

 

Thanks.

 

This topic has been closed for replies.

2 replies

Legend
March 23, 2022

Try clearing the script event manager settings with this code:  

 

while (app.notifiers.length) {  notifiers[0].remove() }
notifiersEnabled = false
var f = new File( app.preferencesFolder + "/" + localize( '$$$/JavaScript/ScriptEventsManager/Title=Script Events Manager' ) + ".xml" )
f.remove()

 

 

c.pfaffenbichler
Community Expert
Community Expert
March 23, 2022

What are you trying to achieve exactly? 

If you should be trying to link a Script or Action to an event why are you tinkering around with »Script Events Manager.jsx« instead of using the interface it provides in Photoshop?