nothhart

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?
You do not have the required permissions to view the files attached to this post.
nothhart
  • Posts: 3

mfedorov

User avatar
mfedorov
  • Posts: 264

Mario

Thanks mfedorov for the hint.

nothhart, does this fix your issue?
User avatar
Mario

Mario
  • Posts: 2392

nothhart

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.
nothhart
  • Posts: 3

Mario

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.
User avatar
Mario

Mario
  • Posts: 2392

nothhart

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.
nothhart
  • Posts: 3

Mario

Thanks for getting back to us!
User avatar
Mario

Mario
  • Posts: 2392


Return to Bugs