The "pesky" preview sketchup icon on a mac

you could run a simple ruby batch script from ‘Ruby Console’…

def update_icon(skp)
  Sketchup.open_file(skp)
def update_icon(skp)
  Sketchup.open_file(skp)
  model = Sketchup.active_model
  model.save
  model.close
end

dir = File.dirname( UI.openpanel('Select SKP Folder'))
skps = Dir.glob(dir + '/*.skp')
skps.each{|skp| update_icon(skp) }

it will show the version warning, but ignores them when it saves…

it will pause on any broken skps and will need a ‘human’ click to move to the next…

john

2 Likes

I have a problem displaying skp files when quicklook in the mac finder, sometimes it can but sometimes it can’t, I try to reset it in Terminal but only run for a while then erorr again.

Before I used SketchUp 2017, now I use SketchUp 2018 . Before I used macOS High Sierra, now I use Mojave. I hope I got solution :pray: Thanks