Skip to main content
barakg10159863
Participant
December 16, 2015
Question

Skip "Some of the the type layers in this document were rasterized because an error prevented them from being read" dialog on app.open

  • December 16, 2015
  • 3 replies
  • 1142 views

I am using app.open to load files into photoshop, but these files are generated by another program and gives the error "Some of the the type layers in this document were rasterized because an error prevented them from being read" on loading the document.

I have tried:

app.displayDialogs = DialogModes.NO;

But this seems to not apply to documents that are not open yet. How can I skip this dialog?

This topic has been closed for replies.

3 replies

Participant
May 21, 2021

theerapun173@gmail.com

Kukurykus
Legend
May 21, 2021

?

Participating Frequently
December 17, 2015

Bonjour

You can use

try

catch

barakg10159863
Participant
December 17, 2015

Thanks for the reply Dominique,

However putting the app.open call in a try catch still shows the dialog and pauses all javascript processing until the dialog is dismissed.

Inspiring
December 17, 2015

Instead of throwing a useful exception when reading partially or totally corrupt files, app.open() has a nasty habit of popping up annoying error messages (from a scripting POV). There's not a whole lot you can do about it from inside PS. On Windows, you can use AutoHotKey to look for and deal with these error dialogs and there is probably some way of doing the same thing on OS X.

Of course, there may be sekrit codez that I don't know about that work around this problem.

barakg10159863
Participant
December 17, 2015

Thanks for your reply xbytor2,

Hopefully someone can help me figure out what Konami-derived codes I need to put in to get things working for me...