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!
    Mac User? | Join the Rayscaper Beta for Mac Learn More

    RBZ as allowed extension

    Scheduled Pinned Locked Moved Plugins
    72 Posts 11 Posters 9.5k Views 11 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.
    • J
      Jim
      last edited by

      Try this one-liner:

      Sketchup.install_from_archive(UI.openpanel("Install","","*.zip"))
      

      By the way, Alex Schreyer mentioned on twitter that in Windows you can past a URL to a .zip or .rbz in the file browser opened by the Install Extensions button, and have the plugin install over the Internet.

      Hi

      1 Reply Last reply
      Reply Quote 0
      • jeff hammondJ
        jeff hammond
        last edited by

        actually, i just backwards tested it and i think your code will be a-ok on mac.

        i renamed my plugins folder and created a new empty one then zipped up a bunch of random crap laying around the desktop..

        changed it to .rbz then installed it via su extensions.. the empty plugin folder was then populated with all that stuff without the standard osx additional folder..

        dotdotdot

        1 Reply Last reply
        Reply Quote 0
        • jeff hammondJ
          jeff hammond
          last edited by

          @jim said:

          By the way, Alex Schreyer mentioned on twitter that in Windows you can past a URL to a .zip or .rbz in the file browser opened by the Install Extensions button, and have the plugin install over the Internet.

          neat.. i'm posting this file here so i can test it on mac..

          url_install_test.rbz

          dotdotdot

          1 Reply Last reply
          Reply Quote 0
          • J
            Jim
            last edited by

            I don't believe SketchUp does any sort of validation check of the .zip/.rbz file - if the author messes up the file layout in the archive, the files will be messed up when extracted and the plugin won't work, and may cause load errors.

            Hi

            1 Reply Last reply
            Reply Quote 0
            • J
              Jim
              last edited by

              @unknownuser said:

              neat.. i'm posting this file here so i can test it on mac..

              Won't work because you need to be logged in to download files... already tried. πŸ˜„

              Hi

              1 Reply Last reply
              Reply Quote 0
              • D
                driven
                last edited by

                works here, using your code Jim

                of_course.png

                learn from the mistakes of others, you may not live long enough to make them all yourself...

                1 Reply Last reply
                Reply Quote 0
                • jeff hammondJ
                  jeff hammond
                  last edited by

                  @driven said:

                  works here, using your code Jim

                  [attachment=0:2jb6paan]<!-- ia0 -->of_course.png<!-- ia0 -->[/attachment:2jb6paan]

                  πŸ˜† πŸ˜† πŸ˜†

                  dotdotdot

                  1 Reply Last reply
                  Reply Quote 0
                  • jeff hammondJ
                    jeff hammond
                    last edited by

                    @unknownuser said:

                    @jim said:

                    By the way, Alex Schreyer mentioned on twitter that in Windows you can past a URL to a .zip or .rbz in the file browser opened by the Install Extensions button, and have the plugin install over the Internet.

                    neat.. i'm posting this file here so i can test it on mac..

                    [attachment=0:1sd00pi3]<!-- ia0 -->url_install_test.rbz<!-- ia0 -->[/attachment:1sd00pi3]

                    nah.. not happening

                    [oh.. i see this from you now: "Won't work because you need to be logged in to download files... already tried. "]
                    πŸ˜†

                    @jim said:

                    I don't believe SketchUp does any sort of validation check of the .zip/.rbz file - if the author messes up the file layout in the archive, the files will be messed up when extracted and the plugin won't work, and may cause load errors.

                    well, it's not like the author was doing anything wrong.. for instance, say i want to download didier's projections plugin..

                    on windows, it will be:

                    projection_v2.zip
                    β€” Projection
                    β€” projection_extensions.rb
                    β€” Projection.pdf
                    β€” read_me.txt
                    
                    

                    whereas, on mac, you'll have

                    projection_v2.zip
                    β€” projection_v2
                    β€” β€” Projection
                    β€” β€” projection_extensions.rb
                    β€” β€” Projection.pdf
                    β€” β€” read_me.txt
                    

                    you see.. there's an extra folder in there.. and i can't just "unzip projection_v2.zip in the plugins folder"(as is often stated in ruby instal instructions) and expect it to work.. it won't work.
                    and sometimes, to make matters more confusing, the .zip and the folder that supposed to go in the plugins folder share the same name so we end up with 2 folders of identical names and are being told to put it in the plugins folder (but there is no 'it'.. there are two of them) πŸ˜„

                    you see the confusion? and it's not as if the writer's have done anything wrong with their packaging/delivery.

                    dotdotdot

                    1 Reply Last reply
                    Reply Quote 0
                    • J
                      Jim
                      last edited by

                      You should probably remove the _MACOSX folder and any .DS_Store files. They must be hidden files on a Mac by default?

                      Hi

                      1 Reply Last reply
                      Reply Quote 0
                      • jeff hammondJ
                        jeff hammond
                        last edited by

                        @jim said:

                        You should probably remove the _MACOSX folder and any .DS_Store files. They must be hidden files on a Mac by default?

                        yeah, they're in all our folders.. they tell the computer how to arrange the icons or what sort order to put the files in etc.. we (mac users) don't see them unless we turn them on but i always hear windows people complaining when they get zips from macs.. πŸ˜„
                        (but i can send driven a folder which will open with all the files arranged in a certain way.. this can come in real handy when working on projects and whatnot between different people/computers.. so they do have a benefit of being included with our folders)

                        there are some 3rd party compression apps and terminal and/or automator commands that people use prior to sending to windows but fwiw, those files are harmless to you.

                        dotdotdot

                        1 Reply Last reply
                        Reply Quote 0
                        • D
                          driven
                          last edited by

                          @jim said:

                          You should probably remove the _MACOSX folder and any .DS_Store files. They must be hidden files on a Mac by default?

                          I'm not seeing the _MACOSX folder and the .Ds_Store can't be easily avoided, unless you remove them from all, system wide.

                          are you seeing _MACOSX folder if you change it to zip and open.

                          Google generated a _MACOSX folder in Plugins on a test I did last night...

                          john

                          learn from the mistakes of others, you may not live long enough to make them all yourself...

                          1 Reply Last reply
                          Reply Quote 0
                          • D
                            driven
                            last edited by

                            it has the .ds store but not the other, I believe thats SU...
                            I changed .rbz to .zip to look inside the download from here.

                            this is what I downloaded from here

                            learn from the mistakes of others, you may not live long enough to make them all yourself...

                            1 Reply Last reply
                            Reply Quote 0
                            • jeff hammondJ
                              jeff hammond
                              last edited by

                              @driven said:

                              I'm not seeing the _MACOSX folder and the .Ds_Store can't be easily avoided, unless you remove them from all, system wide.

                              here's a little freebie that will keep them out of your zips..
                              http://www.sopht.jp/cleanarchiver/

                              Screen Shot 2011-12-03 at 8.48.01 PM.png

                              there are some more robust ones as well but i just use archiveutility.app that ships with osx.. i rarely send zips to windows users anyway..

                              dotdotdot

                              1 Reply Last reply
                              Reply Quote 0
                              • D
                                driven
                                last edited by

                                cheers Jeff,

                                I've actually got YemuZip which does the PC friendly bit, but right clicking is easier.

                                Jim, can you check if that _Mac folder is still generated?

                                no mac only files in this zip...
                                john

                                learn from the mistakes of others, you may not live long enough to make them all yourself...

                                1 Reply Last reply
                                Reply Quote 0
                                • D
                                  driven
                                  last edited by

                                  proper test complements of Jim... thanks in advance Jim

                                  re-name or disable 'homer' if already in your Plugins, and try the loader.

                                  REMOVED ATTACHMENT... there's another below

                                  the Extension Button works here and so does Jim's first script.

                                  the difference is SU opens the toolbar button and Jim's you need to enable it...

                                  learn from the mistakes of others, you may not live long enough to make them all yourself...

                                  1 Reply Last reply
                                  Reply Quote 0
                                  • J
                                    Jim
                                    last edited by

                                    I checked - no extraneous files/folders.

                                    Hi

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

                                      Until .rbz is associated with SketchUp I see no point in using the .rbz format over .zip. The Install Extension button and the API methods accepts either format, so why not keep distributing in .zip?

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

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

                                        @thomthom said:

                                        Until .rbz is associated with SketchUp I see no point in using the .rbz format over .zip. The Install Extension button and the API methods accepts either format, so why not keep distributing in .zip?
                                        The API does allow ZIP or RBZ files... but the Preferences > Install Extension button filters the list of available files to choose from in the dialog that opens to RBZ files only [can't be changed!] - so if you want to use the installer button then your stuff must be packaged as RBZ rather than ZIP, but annoyingly you'll still need a ZIP version for all of the other users with versions that don't include the installer button!
                                        πŸ˜’

                                        TIG

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

                                          What? They didn't add .zip to the list? πŸ˜’

                                          One can just type * in the file name text field, but then you've already defeated the purpose of making things easy and non-technical. x_X

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

                                          1 Reply Last reply
                                          Reply Quote 0
                                          • D
                                            driven
                                            last edited by

                                            And if it's Zipped on a Mac, Google creates a new folder to hold the .DS_Store
                                            2011-12-04 12.04.55 pm.png
                                            If it's only the one I guess it means we don't need to 'PC' Zip files from mac's...
                                            john

                                            learn from the mistakes of others, you may not live long enough to make them all yourself...

                                            1 Reply Last reply
                                            Reply Quote 0

                                            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 Login
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 1 / 4
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement