Question
Scripting novice needs help!
Apologies in advance for asking a "how do I do this" question. While I've written a couple of very simple scripts in the past, it's been a couple of years, and I don't know where to begin with this one:
Somehow a couple of my files got damaged, such that when I try to open them Photoshop CS3 returns a dialog saying, "This file has been damaged by a disk error," with options to open anyway or to cancel.
I would like to have Photoshop systematically check all my other files to see if there are any additional problems. (I could of course just sit there and try to open all X-thousand images one by one, but I'd be there forever.)
So I thought I'd write an action to save resized copies, run all my images through it in a batch, and Photoshop would log any damaged-file errors to the batch error log. Trouble is I can't figure out how to automate an "OK" reply to the dialog box, and the message doesn't get recorded as an error in the errors log.
Is there any way to do this via scripting? The key piece of this is to capture which images throw up the error, and make a list of them somewhere. I can't be the first person who has wanted to do this...
Many thanks,
Andrew
Somehow a couple of my files got damaged, such that when I try to open them Photoshop CS3 returns a dialog saying, "This file has been damaged by a disk error," with options to open anyway or to cancel.
I would like to have Photoshop systematically check all my other files to see if there are any additional problems. (I could of course just sit there and try to open all X-thousand images one by one, but I'd be there forever.)
So I thought I'd write an action to save resized copies, run all my images through it in a batch, and Photoshop would log any damaged-file errors to the batch error log. Trouble is I can't figure out how to automate an "OK" reply to the dialog box, and the message doesn't get recorded as an error in the errors log.
Is there any way to do this via scripting? The key piece of this is to capture which images throw up the error, and make a list of them somewhere. I can't be the first person who has wanted to do this...
Many thanks,
Andrew