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
Supress Warning
Supress Warning
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…