Skip navigation
Currently Being Moderated

CS5 - Error 22:Window does not have a constructor

Apr 22, 2010 11:35 AM

I've been experimenting with some old sccripts on the Photoshop CS5 pre-release and they seem to work fine except any that have a user interface.Scripts that run fine on CS2, CS3 and CS4 throw a "Error 22:Window does not have a constructor" error message. I was wondering if anyone else had noticed this and if they were aware of any changes as regards to scripting with CS5 and also how to correct the issue.



  • Currently Being Moderated
    Apr 22, 2010 8:27 PM   in reply to NovCJ

    That question is better asked in the prerelease forum, but scripts with dialogs are working in the latest build.

    Mark as:
  • Currently Being Moderated
    Nov 13, 2010 10:50 PM   in reply to NovCJ

    Dear All,


    I have been bothered by this same  Photoshop error 22 when trying to use the Photomerge feature or any  other of the Automate features in CS5.


    My computer is a  Windows 7 32bit machine but this should definitely apply to Windows  64bit machines and possibly the same logic may apply to Mac but I do not  know.


    I didnt find a permanent solution but I did find  a temporary fix which will at least allow you to use the function for  one opening of the program however if you close and reopen photoshop the  problem returns.


    Temporary Fix Instructions:


    1.  Locate the file "Adobe Photoshop CS5 Prefs.psp" on your computer and delete it or move it elsewhere.  (I assume by  doing this you may lose *** of your photoshop preferences but it will  allow you to use photomerge and HDR so you choose)


    2. On Windows this file can be found in the User folder under C:\**USER NAME**\AppData\Roaming\Adobe\Adobe Photoshop CS5\Adobe Photoshop CS5 Settings\ (Replace **USER NAME** with the Windows 7 account user name)


    3.  After deleting this file or temporarily moving it out of that folder  you can then open Photoshop CS5 and use the Photomerge feature as much  as you'd like.


    4. As soon as you close Photoshop CS5 the program automatically makes a new Adobe Photoshop CS5 Prefs.psp file so when you try to reopen the program it will not work again.


    I  hope this may be helpful to some people and I hope that Adobe can fix  this issue, I have not and dont plan on submitting this as a bug report  to Adobe, being that I do not personally own the program (still in 30  day trial) but anyone who would like to, please feel free to do so.

    Mark as:
  • Currently Being Moderated
    Nov 14, 2010 6:20 PM   in reply to HSelznick

    It's easier to just reset the preferences on startup:

    "Hold down Shift+Ctrl+Alt (Win) / Shift+Command+Option (Mac) when you start up Photoshop to reset the preferences."

    Mark as:
  • Currently Being Moderated
    Nov 14, 2010 10:43 PM   in reply to xbytor2

    Very nice solution!!


    Yes, pressing ctrl+shift+alt when opening Phoshop CS5 does accomplish the same result and is much easier for most people, I was unaware of this.


    Thank you!

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points