π’ PlaceMaker | 25% off for February including new Google Earth data imports!
Learn more
Launch OSX finder to open a spesific folder?
-
Anyone knows if one can via SketchUp Ruby launch a Finder window at a given path?
-
system "open '/your/path'"
-
cheers!
-
TBD is right of course, but I prefer using:
UI.openURL()
for Sketchup Ruby stuff which works for Windows and Mac.
-
UI.openURL("file:///" + path2folder)
should open the folder on a PC or a MAC. -
@tig said:
UI.openURL("file:///" + path2folder)
should open the folder on a PC or a MAC.Bug splatted my SU....
-
-
-
hmmm.... maybe URL encoding them is the way to go... I'll have to try that. That might solve another problem I had when I used
system
- it would not open non-ASCII paths.
Advertisement