Article View: adobe.scripting.indesign
Article #8452Re: JavaScript Error Handling Question
From: Jim_Birkenseer
Date: Sat, 14 Oct 2006 02:21
Date: Sat, 14 Oct 2006 02:21
13 lines
1375 bytes
1375 bytes
Dave, Thanks for the help! So, since this worked for you, I tried running the script from the Scripts palette instead of running it from ExtendScript Toolbox. It worked as expected (the error is caught)! So it only doesn't fall through to the catch block when running it from ExtendScript. This made me think (a very frightening thing) that my issue was an ExtendScript thing. Low and behold, in ExtendScript, I needed to turn on Debug > Don't Break On Guarded Exceptions. With that setting checked it works!!!! So it was my lack of knowledge of ExtendScript, not my lack of knowledge of JavaScript! At least I was correct in thinking that it was due to a lack of knowledge! ;-) Have a great weekend! -- Jim
Technical Details
Message-ID:
<3bc1f75d.1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!news2.volia.net!news.musoftware.de!news.albasani.net!news.isoc.lu!news.stben.net!webcrossingReferences:
<3bc1f75d.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,3b05154e3909ab65 X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Jim_Birkenseer@adobeforums.com Newsgroups: adobe.scripting.indesign Subject: Re: JavaScript Error Handling Question Message-ID: <3bc1f75d.1@webcrossing.la2eafNXanI> Date: Fri, 13 Oct 2006 19:21:53 -0700 References: <3bc1f75d.-1@webcrossing.la2eafNXanI> Lines: 21 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!news2.volia.net!news.musoftware.de!news.albasani.net!news.isoc.lu!news.stben.net!webcrossing