Supress Warning

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

QuantumDoja

Supress Warning

Post by QuantumDoja »

Hi, I have the following applescript:

Code: Select alltrim current document basing trim on top left pixel

The trouble is, if for some reason, the layer I am trimming is empty, I get a warning:

"Could not trim because this would create an empty document"

How can I suppress this warning message?

Thanks

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

larsen67

Supress Warning

Post by larsen67 »

I don't think you can avoid this dialog. Even wrapping in a try statement and/or a ignoring application responses does not work. You may be able to test for the existence of the dialog then dismiss it keying enter but thats ugly…