Follow data in file in realtime and import them if data in file was changed. Ruby script

Please read and correct your post …

Do not use global variables. SketchUp’s Ruby ObjectSpace is a shared space.

(Note that I reassigned your topic to the correct category.)