sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Preparing for SmustardOrganizer script

    Scheduled Pinned Locked Moved Developers' Forum
    56 Posts 11 Posters 4.7k 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.
    • R Offline
      RickW
      last edited by

      I'm working on re-releasing Organizer.rb

      For any authors who want to be Organizer-compatible, here's the REVISED protocol for adding menu items:

      # Supports Organizer.rb
      	$submenu ? (organizer = $submenu) ; (organizer = UI.menu("Plugins"))
      	organizer.add_item("ItemName") { action }
      

      $submenu is the global variable used by Organizer as it traverses the folders located in the Plugins folder. It creates a submenu consisting of the folder name, then adds the scripts in that folder to the submenu. Scripts can have their own submenus as well:

      # Supports Organizer.rb
      	$submenu ? (organizer = $submenu) ; (organizer = UI.menu("Plugins"))
      	submenu=organizer.add_submenu("Name")
      		submenu.add_item("ItemName1") { action }
      		submenu.add_item("ItemName2") { action }
      		submenu.add_item("ItemName3") { action }
      

      Please note, the beginning comment line is important - it prevents the organizerEdit script from trying to automatically edit the script to make it compliant. It can exist at the beginning of the file to speed the process.

      RickW
      [www.smustard.com](http://www.smustard.com)

      1 Reply Last reply Reply Quote 0
      • R Offline
        RickW
        last edited by

        Thanks to everyone who answered the poll!

        I updated the protocol to something MUCH easier for authors to implement (and for the OrganizerEdit script to modify), so hopefully it will have a nearly comprehensive success rate for modifying scripts to be Organizer-friendly.

        Thanks again - and check it out at http://www.smustard.com/script/Organizer

        RickW
        [www.smustard.com](http://www.smustard.com)

        1 Reply Last reply Reply Quote 0
        • jim smithJ Offline
          jim smith
          last edited by

          Thanks Rick for re-working the organizer. Eagerly awaiting!

          Jim

          "Out of clutter find simplicity,
          from discord find harmony,
          In the middle of difficulty lies opportunity"
          Albert Einstein

          1 Reply Last reply Reply Quote 0
          • R Offline
            RickW
            last edited by

            Glad to do it. The difficult part is the rewriter script (!) that reads all the scripts and attempts to rewrite their menu entries to work with Organizer. There are just a few scripts that are type formatted in a way it doesn't understand, and it simply ignores those scripts (which won't be organizeable unless manually edited). It creates a log file to indicate which files got edited, so you know which ones can be organized.

            RickW
            [www.smustard.com](http://www.smustard.com)

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

              Not only an organizer, but a script installer; goes out on the Internet, downloads the plugin, extracts it to the correct folder, and cleans up.

              Hi

              1 Reply Last reply Reply Quote 0
              • R Offline
                RickW
                last edited by

                Organizer is re-released!

                favicon

                (www.smustard.com)

                I also changed the protocol to something MUCH more author-friendly, so everyone can easily be Organizer-friendly 😄

                Thanks to all for the input...

                RickW
                [www.smustard.com](http://www.smustard.com)

                1 Reply Last reply Reply Quote 0
                • KrisidiousK Offline
                  Krisidious
                  last edited by

                  Rick is there any other way to pay? I hate Paypal, they are demon spawn... I've already bought a few scripts from you, but I can't keep giving money to Paypal... it hurts me deep inside...

                  By: Kristoff Rand
                  Home DesignerUnique House Plans

                  1 Reply Last reply Reply Quote 0
                  • jujuJ Offline
                    juju
                    last edited by

                    OK, bought it (and some other goodies, hmmm). I see we need to backup the plugins folder, no problem. I was wondering if the script only works for enhancements to the "plugins" folder or if it can be used for the scripts that goes into the "tools" folder as well? If so, will you have to go through the same steps as for the "plugins" folder?

                    Can one rather have all the scripts (even the ones that need to go in the "tools" folder) in a separate folder in "plugins" or the like and have the organizer script build the menu for you in SU6?

                    Save the Earth, it's the only planet with chocolate.

                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      RickW
                      last edited by

                      @unknownuser said:

                      Rick is there any other way to pay?

                      Sure - print off your shopping cart and send it with a cashier's check (I'll send you an address), and when the check clears, I will enter your purchase info into our database and send you a download email. We've looked into Google payments, but haven't worked it into our site yet.

                      @unknownuser said:

                      I was wondering if the script only works for enhancements to the "plugins" folder or if it can be used for the scripts that goes into the "tools" folder as well?

                      It was written specifically for the Plugins folder, since that's where most scripts live, and it's the Plugins menu that tends to get the most cluttered. Out of curiosity, what all do you have in your Tools folder? I'd be interested to see a screenshot of that...

                      RickW
                      [www.smustard.com](http://www.smustard.com)

                      1 Reply Last reply Reply Quote 0
                      • jujuJ Offline
                        juju
                        last edited by

                        Here we go Rick, I think it might only be the SoapSkinBubble ruby that's new in there, have added a few ruby scripts lately and I didn't keep track of all of it.

                        Some of the ruby scripts insert themself in a few different places in the SU menu, maybe that is what is bugging me more than where the actual ruby file is found in the SU directories.

                        Have not tried the new script yet (but got it though - thx to you and Smustard), will check it out later.

                        http://www.sketchucation.com/forums/scf/sas/Ruby/SU6 Tools folder.JPG

                        Save the Earth, it's the only planet with chocolate.

                        1 Reply Last reply Reply Quote 0
                        • EdsonE Offline
                          Edson
                          last edited by

                          @unknownuser said:

                          Out of curiosity, what all do you have in your Tools folder? I'd be interested to see a screenshot of that...

                          here you go, rick, now you know everything about me.

                          edson

                          http://www.sketchucation.com/forums/scf/sas/Ruby/edson SU6 Tool Folder.png

                          edson mahfuz, architect| porto alegre • brasil
                          http://www.mahfuz.arq.br

                          1 Reply Last reply Reply Quote 0
                          • EdsonE Offline
                            Edson
                            last edited by

                            would you please let us mac users know when the mac version is working?

                            regards.

                            edson

                            edson mahfuz, architect| porto alegre • brasil
                            http://www.mahfuz.arq.br

                            1 Reply Last reply Reply Quote 0
                            • R Offline
                              RickW
                              last edited by

                              What error message(s) do you get?

                              RickW
                              [www.smustard.com](http://www.smustard.com)

                              1 Reply Last reply Reply Quote 0
                              • R Offline
                                RickW
                                last edited by

                                For those who just absolutely hate PayPal, I just signed up for Google Checkout. I can invoice you by email if you want to purchase. Just send me an email of your shopping cart, and I'll invoice you.

                                Download info will be emailed after the completion of the transaction.

                                RickW
                                [www.smustard.com](http://www.smustard.com)

                                1 Reply Last reply Reply Quote 0
                                • G Offline
                                  gata
                                  last edited by

                                  Azuby has written his rbs scripts for the Tools folder. And RpTools stuff goes there too.

                                  1 Reply Last reply Reply Quote 0
                                  • R Offline
                                    RickW
                                    last edited by

                                    @gata said:

                                    Azuby has written his rbs scripts for the Tools folder. And RpTools stuff goes there too.

                                    That's right, someone put yamland date stuff in my Tools folder. I think it must have been RPS Space Designer when I tried it some time ago.

                                    RickW
                                    [www.smustard.com](http://www.smustard.com)

                                    1 Reply Last reply Reply Quote 0
                                    • EdsonE Offline
                                      Edson
                                      last edited by

                                      @rickw said:

                                      What error message(s) do you get?

                                      i am assuming this question was directed to me.

                                      well, actually i have not bought it yet. i read somewhere (probably in smustard) a statement that led me to believe some testing was going to be done before announcing that the script runs well on macs. i apologize if understood it wrong.

                                      thanks.

                                      edson

                                      edson mahfuz, architect| porto alegre • brasil
                                      http://www.mahfuz.arq.br

                                      1 Reply Last reply Reply Quote 0
                                      • EdsonE Offline
                                        Edson
                                        last edited by

                                        @unknownuser said:

                                        NOTE: There have been some issues reported with using this on Mac, so until they are resolved, this (unfortunately) is for PC only, for now. I will post a revised version when it works on Mac

                                        this is what i referred to in my other posting. from this i assumed one has to wait for a mac version.

                                        edson

                                        edson mahfuz, architect| porto alegre • brasil
                                        http://www.mahfuz.arq.br

                                        1 Reply Last reply Reply Quote 0
                                        • R Offline
                                          RickW
                                          last edited by

                                          I suppose it wouldn't be too hard to traverse the Tools folder as well, but could provide the "opportunity" for duplicate menu items if there are same-named subfolders in both Plugins and Tools. I have the suspicion, though, that items in the Tools folder will have fixed menus.

                                          .rbs files can't be edited by OrganizerEdit to be made to work with Organizer, so it will be up to the authors to accommodate the possibility prior to encryption.

                                          RickW
                                          [www.smustard.com](http://www.smustard.com)

                                          1 Reply Last reply Reply Quote 0
                                          • jujuJ Offline
                                            juju
                                            last edited by

                                            Rick, I'll have to run the organizer script every time I change (add / remove some) the ruby scripts right? I would assume so, just need to be clear on it.

                                            If so, I just add the scripts to the plugins folder and run the script again, that shouldn't have a negative effect on the scripts already "organized" right?

                                            Save the Earth, it's the only planet with chocolate.

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

                                            Advertisement