Article View: adobe.scripting.indesign
Article #16681removing automessages when using AS (OSX)
From: John Darnell
Date: Tue, 12 Aug 2003 19:13
Date: Tue, 12 Aug 2003 19:13
28 lines
1976 bytes
1976 bytes
FοΏ½ilte Fellow Scripters:
I do a lot of PLACEing in my script and the script has to look all over the network for the image that must be placed in the image box. Regrettably, sometimes, because servers go down, or whatever, the script cannot find the file, at which point it displays the message:
"File CompletePath:XYZ could not be found."
and the script will not continue until a user clicks the OK button.
This is not good for a program that is supposed to be completely automated. This is how I have the code written now (pseudocode):
if content type is graphic
try
place MyFile
on error
LogStamp("MYFILE cannot be found")
end try
end if
LogStamp is a handler that opens a text file, adds a line of text to it, and then immediately closes it.
Is there any way to turn this behavior off?
Additionally, every time I place a text file (which means importing tagged text--on yearbooks, that's a lot of files placed) a progress bar flashes on the screen, and immediately disappears (because the import jobs are usually less than 100 chars in length). It still, however, slows down operations. Is there a way to turn off these messages as well?
TIA.
John
Technical Details
Message-ID:
<1dea4cdc.-1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-05!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!WebXShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f939a,b4138176ff6cb45f,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-08-12 12:40:09 PST From: "John Darnell" <John.Darnell@Walsworth.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-05!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: removing automessages when using AS (OSX) Message-ID: <1dea4cdc.-1@WebX.la2eafNXanI> Date: Tue, 12 Aug 2003 12:13:30 -0700 Lines: 37 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit