3 Replies Latest reply on Dec 19, 2010 12:16 PM by Col84

    File format


      Say I've got a script which has to open lots of jpeg images for example. Now if for whatever reason one of the images isn't actually a jpeg and instead just a different format with a jpg extension. How would I skip this one a continue with the rest of the script? At the moment when something like this happens the script just seems to stall and doesn't continue. Obviously if you opened the individual file manually you would see an error message saying it couldn't be opened, but what could I add into the script to skip it?