Article View: adobe.photoshop.scripting
Article #394Scripting novice needs help!
From: Andrew_L_Slayman
Date: Tue, 03 Mar 2009 23:39
Date: Tue, 03 Mar 2009 23:39
12 lines
1795 bytes
1795 bytes
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
Technical Details
Message-ID:
<59b81b1c.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f5839,e2b6b032f624e614,start X-Google-Attributes: gidf5839,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Andrew_L_Slayman@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.photoshop.scripting Subject: Scripting novice needs help! Message-ID: <59b81b1c.-1@webcrossing.la2eafNXanI> Date: Tue, 3 Mar 2009 15:39:38 -0800 Lines: 11 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Original-Lines: 25