This is the error:

Error: #<WIN32OLERuntimeError: unknown property or method `ActiveSelection'
    HRESULT error code:0x800706ba
      The RPC server is unavailable.

Where can I find more info on that catching?
Is it possible to use in a if clause (to let the script continue or go to
another script)?

Thx already!


-----Original Message-----
From: Masaki Suketa [mailto:masaki.suketa / nifty.ne.jp] 
Sent: maandag 20 september 2010 10:23
To: ruby-talk ML
Subject: Re: check if Win32OLE still available

On Mon, Sep 20, 2010 at 04:41:03PM +0900, Reinhart Viane wrote:

> I'm getting back on this.
> I do receive an error, however, it seems I cannot catch it.

What is the error you received?

> It does not give me back empty or nil. Maybe there is another method to
> catch that error?

How about catching WIN32OLERuntimeError?

  begin
    ...(your script)
  catch WIN32OLERuntimeError
    ...(catching error)
  end

  Regards,
  Masaki Suketa