Script Selection and Loading
-
Question
I have a ruby script by TIG and Didier that displays PDF help files. I have found this of great help. Activating this pluging, lists all the PDF help files in the plugin dirtectory, such that selecting a help file from the drop down list the selected help file will be open for reading.
Would like to ask the question, could this ruby script by modified such that it would look into another directory such as PluginLoad, list all the plugins in a drop down list, that reside in that directory, and load the chosen plugin from the drop down list when seleced
This way, I could load all the main plugins each and every opening, however, by using this modified version, I could make a selection of another plugin which I wish to use, have it loaded and available.
This would clean up my plugin drop down list, if I could selectivity load plugins as required.Thanks in advance
Also, thanks to TIG and Didier for original display help files plugin.
Ken -
Hi Ken, I have not looked at this script yet (but I mean to, because I need its functionality at school). But this script loads scripts from a different location - like a flash drive, and even from online I believe. Anyhow, check it out. See if it is useful,
http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=17355
Chris
-
Chris
Thanks for the link. This may be exactly what I want. Will try tonight.
Again thanks for the link and the scripts.
Ken
-
Thanks to Alexander Schreyer for writing this script, Jim Folz for his help and Chris for the link.
This script works as indicated. I have renamed some script to give me a more accurate indication exactly what the script does. So far, it has loaded all the renamed scripts.
Now, I just need to clean up my plugin directory. This will be a big help in keeping order. I never really like loading all the script at the beginning, but just could not get though all the cutter of confusing names to load each script by the script loaded I have now.
Again thanks to all.
Ken -
Well, I don't really want to be the only one to keep harping on this great plugin. However, after reading how some plugin will not load correctly in another folder. I tried renaming the plugin with a .x as the file extension. That way the plugin will be in the plugin directory if required, and the loader adds the .rb extension. So far so good. So now I will not need to move all the plugin to another folder, just rename the file extension.
Down sizing my plugins.
Ken
-
Hmm, thats a great idea. I'm excited to look at the script more now. This whole thread might almost be merged into that script thread with the valuable info your providing.
Chris
Advertisement