On Close Application Event Action

Ok I am editting google sketchups base and I have built a ruby plugin
however I want an event to happen on close.

So when you open sketchup it opens somthing called a components panel
which I am doing with,

status = UI.show_inspector "Components"

But then I want it to Hide the Components panel when sketchup is closed.
any ideas anyone

···

--
Posted via http://www.ruby-forum.com/.

Simon Staton wrote:

Ok I am editting google sketchups base and I have built a ruby plugin
however I want an event to happen on close.

So when you open sketchup it opens somthing called a components panel
which I am doing with,

status = UI.show_inspector "Components"

But then I want it to Hide the Components panel when sketchup is closed.
any ideas anyone

no ideas?

···

--
Posted via http://www.ruby-forum.com/.

Simon Staton wrote:

no ideas?

I'm not sure if this does work with Google SketchUp, but doesn't at_exit
do the job? The block given to it is executed just prior to the
termination of the Ruby interpreter.

Marvin

···

--
Posted via http://www.ruby-forum.com/.