Photoshop: Suppress "There was problem reading the layer data. Read the composite data instead?" dialog from javascript

  • 1
  • Problem
  • Updated 5 months ago
  • (Edited)
OS: macOS Sierra 10.12.3
Photoshop Version: Photoshop CC 2018 19.1.6

Photoshop CC 2018 pops up dialog shown in image below even when we ask not to display any dialog from Java Script.



In the following script first we are suppressing any dialog from Photoshop as shown in code below.

app.displayDialogs = DialogModes.NO;
$infile = "test.psd";
app.open(new File($infile));
The script is blocked at open() call unless user interact and close the dialog.

How can we suppress this dialog?

We faced similar issue in earlier versions of Photoshop CC 2015, then the issue was resolved in Photoshop CC 2015 version 2015.1.2.

Below is link to the conversation logged around 3 years ago for Photoshop CC 2015
https://feedback.photoshop.com/photoshop_family/topics/supress-cant-locate-link-assets-dialog-from-j...

Thanks & Regards,
Shivani Kansal

Photo of Shivani Kansal

Shivani Kansal

  • 2 Posts
  • 0 Reply Likes

Posted 5 months ago

  • 1
Photo of David Converse

David Converse

  • 680 Posts
  • 207 Reply Likes
Have you tried trapping the error and dealing with it? A proceed/cancel dialog has to be dealt with one way or another.
Photo of Shivani Kansal

Shivani Kansal

  • 2 Posts
  • 0 Reply Likes
Yes we tried, but no exception is being thrown during open() call.