Skip to main content
carriestephens
Known Participant
July 16, 2013
Question

Export layers to file script error in Photoshop CC

  • July 16, 2013
  • 1 reply
  • 12318 views

I need help with an issue.  I also asked this in the general forum but was refered here to ask all of you amazingly talented scripting geniuses.

My issue is with the Export Layers script that comes installed with Photoshop.  I am running Windows 7 64bit - using photoshop version: creative cloud 64bit.

When i try to run File>Scripts> Export Layers to files I get this error

Error 22: Windows does not have a constructor. Line: 239 -> dlgMain = new Window ("dialog", strTitle); 

When i load Photoshop Creative Cloud 32 bit i get a different error message when trying to run the script. 

Error - 33: Internal error . line:395 ->  dligMain.pnlFileType.pnlOptions.grpJPGOptions = ...

I can't run the image processor script I also get an error with that. 

This  is an issue for me as i use this script on a daily basis.  It worked in PSCS6  

I upgraded, i dont' want to have to load an older  version of photoshop to do this task  

Thanks

Carrie 

This topic has been closed for replies.

1 reply

DBarranca
Legend
July 18, 2013

Hi,

can you try with "Tabbed view" preference on?

It was a problem with scripting back in some CS6 versions, but should be fixed in CC.

Davide

carriestephens
Known Participant
July 18, 2013

Hi Davide! 

Open Documents was checked already so, i tried with it unchecked and the error message I get now is a bit different.   Error 1: Unable to create Window - server interface error 'No component returned from CreateWidget'. Line 239 -> dlgMain = New Window("dialog" , strTitle);

Then i tried a second time and got another different message Server Interface error 'Error setting Window::backgroundColor: Actionscript error: Error: Cannot convert'.

Thanks for the try!  Anymore ideas? 

DBarranca
Legend
July 18, 2013

I'm afraid no ideas...

These kind of errors appeared to me too (Mac, CS5/CS6). If memory doesn't fail me - and there were tricks to be applied in your own scripts to workaround the problem - the issue was due to a stack of commands involving Document change (say: switch from document A to document B and then activate the layer X): what happened was that the script's call "activate the layer X" was too quick - i.e. it happened before Photoshop could actually perform the switch. As a result the "activate the Layer X" was executed on the A document instead of the B document and the whole thing broke.

Mind you, it's just an example I've made up.

Tab view for some reason worked as expected.

I would suggest to try with no other documents open, resetting the preferences (launch PS pressing CRTL+ALT+SHIFT) - but this is quite generic, as a recommendation.

Davide