Dismiss Graphic Converter dialog box
Dismiss Graphic Converter dialog box
- Subject: Dismiss Graphic Converter dialog box
- From: Simon Forster <email@hidden>
- Date: Fri, 06 Jul 2001 13:55:44 +0100
I have a script which uses GraphicConverter to open up an image, resize it,
etc. The script works fine but occasionally, GraphicConverter throws up a
dialog box with an error message - typically if the image is slightly
corrupted. Unfortunately, GraphicConverter doesn't seem to throw an
AppleEvent error at the same time so I cannot trap for this condition in the
standard way.
Using Sandi's additions, I could just type a return after getting
GraphicConverter to open an image. This would clear any dialog box that gets
thrown up - but this seems somewhat dangerous on an unattended server as we
may be clearing a completely different dialog.
I guess I'd like to check for any dialog boxes before trying to open the
file, check again immediately afterwards and clear a new one if it had
appeared. Trouble is, I have no idea how to achieve this - anyone else?
TIA
Simon Forster
________________________________________________
LDML Ltd, 4/5 Hazlitt Mews, London, W14 0JZ, UK
<tel int="+44 20 7602 9370" uk="020 7602 9370">
<fax int="+44 20 7371 6662" uk="020 7371 6662">
<
mailto:email@hidden>
________________________________________________