
Re: AppleEvent not handled
kidney wrote:Matt, is there a way to automatically reload the script when that happens?
Instead of reloading the script, you should catch the error to prevent the script from failing (throwing out of) when it occurs if that is what you need. You can modify the default (sample) script to not return (exit) out of the script for the
AppleEvent not handled error by changing these lines:
- Code: Select all
else if errNum is -1708 then
log "AppleEvent not handled" using type "Error"
return -- fatal error; exit script processing
to this:
- Code: Select all
else if errNum is -1708 then
log "AppleEvent not handled" using type "Error"
Regards,
Matt