• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Export layers to file script error in Photoshop CC

Explorer ,
Jul 16, 2013 Jul 16, 2013

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 

TOPICS
Actions and scripting

Views

11.9K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Advocate ,
Jul 18, 2013 Jul 18, 2013

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 18, 2013 Jul 18, 2013

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? 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jul 18, 2013 Jul 18, 2013

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Jul 18, 2013 Jul 18, 2013

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 23, 2013 Oct 23, 2013

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Oct 23, 2013 Oct 23, 2013

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 24, 2013 Oct 24, 2013

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines