From: Masaki Suketa Date: 2010-09-20T20:50:03+09:00 Subject: Re: check if Win32OLE still available On Mon, Sep 20, 2010 at 06:02:43PM +0900, Reinhart Viane wrote: > This is the error: > > Error: # HRESULT error code:0x800706ba > The RPC server is unavailable. > > Where can I find more info on that catching? http://rubylearning.com/satishtalim/ruby_exceptions.html > Is it possible to use in a if clause (to let the script continue or go to > another script)? No. You must use begin rescue end to catch WIN32OLERuntimeError exception. If you want to let the script continue, write the script like following. is_ok = true begin obj.ActiveSelection rescue WIN32OLERuntimeError is_ok = false end if (is_ok) ... continue script non exception occurred. else ... continue script when WIN32OLERuntimeError occurred. end Regards, Masaki Suketa