Hide prompts in Photoshop

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

Rumf

Hide prompts in Photoshop

Post by Rumf »

Is there a way to hide all prompts and warnings in Photoshop, when running a script (javascript)?

Apparently, this can be done with applescript, but is there a solution for javascript? displayDialogs = DialogModes.NO does not do the trick for me. I want to get rid of the "The image is larger than the paper's printable area, and some clipping will occur." warning, when printing something. The dialogue has two options: Proceed and Cancel. If I can not get rid of it, at least is there a way to make the script hit the "Proceed" button? Thank you!

Applescript code:

tell application "Adobe Photoshop CS5"
set display dialogs to never
end tell