script event manager error

New Here ,
Mar 22, 2022 Mar 22, 2022

Copy link to clipboard

Copied

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.

 

screen.PNG

TOPICS
Actions and scripting , Cross-app workflows , iPadOS , macOS , SDK , Windows

Views

47

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Mar 23, 2022 Mar 23, 2022

Copy link to clipboard

Copied

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? 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Mar 23, 2022 Mar 23, 2022

Copy link to clipboard

Copied

LATEST

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()

 

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines