🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.photoshop.scripting
Article #148

Re: Scripting novice needs help!

#148
From: xbytor
Date: Mon, 16 Mar 2009 13:53
22 lines
1477 bytes
fazstp@adobeforums.com wrote:
> Can you just suppress dialogs and use a try block to open the image?
> 
> function openImage( file_name ) {
> 

There are some broken images that will slip by this technique. Instead of 
throwing an exception (as it should), you get the 'damaged' dialog.

If you are running on XP, you can use a utility like AutoHotKey to automatically 
  hit the 'damaged' dialog which results in the above openImage function 
returning false.


Here's what I originally wrote on the topic:
http://www.ps-scripts.com/bb/viewtopic.php?p=8519&sid=710f64b04bc6cfb71aa4bc5f2b3d3cc0


I never could find anything that would automatically take care of the 'damaged' 
dialog on the Mac, so, for a lot of people, this is a less than complete solution.

-X
Technical Details
Message-ID: <6B2A03BEE78F13298EDAECFF5C39419B@in.webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
References: <59b81b1c.-1@webcrossing.la2eafNXanI> <59b81b1c.2@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f5839,e2b6b032f624e614
X-Google-Attributes: gidf5839,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: xbytor@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.photoshop.scripting
Subject: Re: Scripting novice needs help!
Message-ID: <6B2A03BEE78F13298EDAECFF5C39419B@in.webcrossing.la2eafNXanI>
Date: Mon, 16 Mar 2009 06:53:55 -0700
References: <59b81b1c.-1@webcrossing.la2eafNXanI> <59b81b1c.2@webcrossing.la2eafNXanI>
Lines: 28
User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209)
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit