Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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...
Copy link to clipboard
Copied
Bonjour
You can use
try
catch
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
theerapun173@gmail.com
Copy link to clipboard
Copied
?