Article View: adobe.scripting.indesign
Article #18517Re: Here's a script for exporting selected objects to PDF
From: Dave Saunders
Date: Wed, 19 Mar 2003 15:28
Date: Wed, 19 Mar 2003 15:28
17 lines
1540 bytes
1540 bytes
Richard, I just stumbled upon this topic while doing some admin. Thanks for posting the script. In the spirit of contributing to your learning: A comment about your use of the try construct. A way of making the error message a little more meaningful (as much for debugging as for the user) is to have the on error part read: on error display dialog myErrMsg end try Then, at the beginning of the script you can do something like: set myErrMsg to "Trouble starting up" And through the script you can change the value to indicate where you are or what you're doing. That way, when it does pull an error you have a better idea of what went wrong -- both you the developer, and you the user after the script is published. Dave
Technical Details
Message-ID:
<1de7a699.0@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!oleane.net!oleane!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de7a699.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,c9839df0c827155 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-03-19 07:38:13 PST From: "Dave Saunders" <daves@pdsassoc.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!oleane.net!oleane!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Here's a script for exporting selected objects to PDF Message-ID: <1de7a699.0@WebX.la2eafNXanI> Date: Wed, 19 Mar 2003 07:28:18 -0800 References: <1de7a699.-1@WebX.la2eafNXanI> Lines: 24 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit