PDA

View Full Version : try.....on error.....end try question


NovaScotian
03-08-2005, 09:59 AM
If there is an error in an AppleScript try structure (in my case caused by an occasional timing problem with an exteral device), how do I set up the "on error" part of the try to simply repeat the part of the script that had the error? I want:

try
do stuff (in my case a repeat)
on error
try again
end try

hayne
03-08-2005, 10:03 AM
You probably want to put the whole "try...on error...end" inside a loop that checks for a flag - some variable that indicates success or failure.