sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    πŸ«› Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download

    Launch OSX finder to open a spesific folder?

    Scheduled Pinned Locked Moved Developers' Forum
    9 Posts 4 Posters 460 Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • thomthomT Offline
      thomthom
      last edited by

      Anyone knows if one can via SketchUp Ruby launch a Finder window at a given path?

      Thomas Thomassen β€” SketchUp Monkey & Coding addict
      List of my plugins and link to the CookieWare fund

      1 Reply Last reply Reply Quote 0
      • tbdT Offline
        tbd
        last edited by

        system  "open '/your/path'"
        

        SketchUp Ruby Consultant | Podium 1.x developer
        http://plugins.ro

        1 Reply Last reply Reply Quote 0
        • thomthomT Offline
          thomthom
          last edited by

          cheers!

          Thomas Thomassen β€” SketchUp Monkey & Coding addict
          List of my plugins and link to the CookieWare fund

          1 Reply Last reply Reply Quote 0
          • AdamBA Offline
            AdamB
            last edited by

            TBD is right of course, but I prefer using:

            UI.openURL()

            for Sketchup Ruby stuff which works for Windows and Mac.

            Developer of LightUp Click for website

            1 Reply Last reply Reply Quote 0
            • TIGT Offline
              TIG Moderator
              last edited by

              UI.openURL("file:///" + path2folder) should open the folder on a PC or a MAC.

              TIG

              1 Reply Last reply Reply Quote 0
              • thomthomT Offline
                thomthom
                last edited by

                @tig said:

                UI.openURL("file:///" + path2folder) should open the folder on a PC or a MAC.

                Bug splatted my SU.... 😞

                Thomas Thomassen β€” SketchUp Monkey & Coding addict
                List of my plugins and link to the CookieWare fund

                1 Reply Last reply Reply Quote 0
                • thomthomT Offline
                  thomthom
                  last edited by

                  @thomthom said:

                  @tig said:

                  UI.openURL("file:///" + path2folder) should open the folder on a PC or a MAC.

                  Bug splatted my SU.... 😞

                  Seems to splat if there are non-ASCII characters in the path.

                  Thomas Thomassen β€” SketchUp Monkey & Coding addict
                  List of my plugins and link to the CookieWare fund

                  1 Reply Last reply Reply Quote 0
                  • TIGT Offline
                    TIG Moderator
                    last edited by

                    @thomthom said:

                    @thomthom said:

                    @tig said:

                    UI.openURL("file:///" + path2folder) should open the folder on a PC or a MAC.

                    Bug splatted my SU.... 😞

                    Seems to splat if there are non-ASCII characters in the path.

                    You can gsub them into html friendly codes ?
                    These non-ASCII characters and Ruby πŸ˜’

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • thomthomT Offline
                      thomthom
                      last edited by

                      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.

                      Thomas Thomassen β€” SketchUp Monkey & Coding addict
                      List of my plugins and link to the CookieWare fund

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      • First post
                        Last post
                      Buy SketchPlus
                      Buy SUbD
                      Buy WrapR
                      Buy eBook
                      Buy Modelur
                      Buy Vertex Tools
                      Buy SketchCuisine
                      Buy FormFonts

                      Advertisement