But there are times when it is good to close SketchUp; when you change the name of a method, for example. Closing SketchUp is the only way to get rid of the old method name. Sometimes you have a bug where a part of your code is still using the old method name until you remember you changed it. I've done this numerous times.
This may not have been such a good idea for a plugin. π For one, the messagebox keeps popping up as if onNewmodel is being called multiple times. I've removed the download for now.
I did something like that in timetrack.rb - here is the uncompress part
zap_files = <<EOL
{"tt_stop_l.png"=>"... removed ...", "tt_go_s.png"=>"... removed ..."}
EOL
if not FileTest.exists?("tt_stop_l.png")
eval(zap_files).each_pair do |x,y|
File.open(File.join(Sketchup.find_support_file("Plugins"), x),"wb") do |f|
f.write y.unpack("m")
end
end
end