• Bugs
  • LayersToPNG.jsx Error exporting from Photoshop

Related Discussions
...

I was trying to run the LayersToPNG.jsx script to export a PSD and before the options dialog box even appeared I received the follow error message: "Error 22: Window does not have a constructor. Line 233 -> var dialog = new Window("dialog", "Spine" LayersToPNG");
*see attachment for screenshot of the error message

I recently upgraded my system from MacOS Lion to MacOS El Capitan. I never had this error occur while using Lion.
Also, it appears that the file itself isn't the problem since I sent my file to someone else and they were able to run the script for me.
(Also, I'm using PS CS6)

Does anyone have any ideas of ways to fix/get around this error?

Thanks mfedorov for the hint.

nothhart, does this fix your issue?

Thanks a bunch. Resetting my Photoshop preferences seemed to do the trick. Don't know if I'll have to reset them each day I need to run the script, but it certainly works.

Please let us know if you need to reset the prefs every day. That'd be bad. I'm uncertain atm how to resolve this in our script, the Adobe SDK seems to indicate what we do is correct.

17 days later

My apologies for not replying sooner (I haven't needed to use Spine for a couple weeks). I ran the export script today and it didn't require me to reset my preferences again. So it may have been a one-time thing that needed to be done after upgrading my OS.

Thanks for getting back to us!