Export layers to file script error in Photoshop CC
Copy link to clipboard
Copied
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
Explore related tutorials & articles
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
From the error messages I don't think this is a document focus problem. I think it has more to do ScriptUI errors. Both 'Export Layers to files' and 'Image Processor' work as expected for me using Photoshop CC on WIndows 7 in both 64 and 32bit versions of Photoshop so I also don't think it is a version problem. I would suspect a bad install. But you may want to contact Adobe support.
Can you run any script that creates a user dialog?
Copy link to clipboard
Copied
I have the same problem. It just started doing it. It won't run any script that requires a user dialogue box. I'm also using Photoshop CC.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Yeah, that was the first thing I did. Any way, the problem seems to have vanished all by itself since yesterday (and it wasn't just fixed by a reboot. I did that yesterday too to no effect). I'd still like a solution for this if the problem comes up again.