Re: don't understand how to use timeout
Re: don't understand how to use timeout
- Subject: Re: don't understand how to use timeout
- From: Robert Poland <email@hidden>
- Date: Thu, 15 Sep 2005 07:10:08 -0600
On Sep 14, 2005, at 5:49 PM, Robert Poland wrote:
I have a script that process multiple files. If one of the files
(text) is formatted wrong it will cause an error.
try
set message to x & (return) & (return) & "Of file: " & currentFileName
display dialog message buttons {"OK"} default button 1 with icon stop
return -- quit program
on error
log message
end try
The question is; Where do I view the log?
Well, first of all, you have to write the error routine properly:
try
set message to x & (return) & (return) & "Of file: " & currentFileName
display dialog message buttons {"OK"} default button 1 with icon stop
return -- quit program
on error message
log message
end try
You can then read the log in the Log pane of the script window or in
the Event Log History window.
-- Michelle
Thanks Michelle,
I normally run this script as an application. So, "the log in the Log
pane of the script window or in the Event Log History window" being
part of the "Script Editor" don't normally come into play.
I loaded the script into the "Script Editor" and tried it there.
Didn't get any meaningful results.
Guess I understand even less than I thought.
--
Bob Poland - Fort Collins, CO
http://www.ibrb.org/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden