Preparing for SmustardOrganizer script
-
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.
-
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
-
Thanks Rick for re-working the organizer. Eagerly awaiting!
Jim
-
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.
-
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.
-
Organizer is re-released!
http://www.smustard.com/script/Organizer
I also changed the protocol to something MUCH more author-friendly, so everyone can easily be Organizer-friendly
Thanks to all for the input...
-
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...
-
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?
-
@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...
-
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.
-
@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
-
would you please let us mac users know when the mac version is working?
regards.
edson
-
What error message(s) do you get?
-
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.
-
Azuby has written his rbs scripts for the Tools folder. And RpTools stuff goes there too.
-
@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 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
-
@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
-
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.
-
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?
Advertisement