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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement
