Short : Scans dirs for brushes. Makes index.htm Author : Colin F. Thompson Uploader : Colin F. Thompson colin@sd.znet.com Type : text/hyper Distribution : Freeware ------------------------------------------------------- What the heck is all this? I've been assembling thousands of GIF brushes for the KarmaBar project. I decided to upload the source imagery to AmiNet so we could all share in the wealth ): The archive, /pix/icons/PCbrushes.lha, needed a good way for the user to see the images. I decided to let the user view the brushes with a Web Browser. I had to generate an index.html file for each of the 40+ directories of brushes. This was gonna be a big job, so I decided to automate the process. What I eventually came up with is an ARexx script that does all the work. It scans a directory full of brushes and writes a html file into that directory. If you aim Voyager at that file, you get to see all the pretty pictures on your screen. The young kids would say "Kewl!". The usage for the Arexx script is: RX AutoIndex.rexx (directory name/) That's pretty easy, but if you have a bunch of directories, as I do, it gets a bit tiring. So, I wrote a MUInt script that pops up a small MUI GUI to automate the process. The script scans all the directories in the directory where it lives. Then it presents these directory names in a listview. You can select any or all of these displayed directories. Once you have made your selections, press MAKE HTML, and stand back. The ARexx script is called on to write a html file inside each of the selected directories. I've included a couple of small directories in this archive you can practice on. Just put the ARexx script in sys:rexx, and MUInt in the path someplace before you fire up the GUI. You will need MUI and ARexx available on your Amiga, or the results will be unsatisfying. The Arexx-literate among you may change the script to include any html tags you like. I've included a simple set, just enough so the file can be read by a browser. Now, here's the usual stuff that nobody ever reads, but Urban requires :) SCRIPT FILENAME: AutoIndex.def DATE 15 May 1996 AUTHOR Colin F. Thompson DESCRIPTION Generates a HTML file(s) that lists all the brushes in the selected directories. The HTML filename will be DIRNAME.html REQUIREMENTS MUI, MUInt*, Arexx, AutoIndex.rexx*, WB2.x+ * Included in this archive INSTALLATION Place MUINT in the path. Place AutoIndex.rexx in sys:rexx Place AutoIndex.def in the directory above the ones you want to scan. USAGE Copy AutoIndex.def to the directory that contains the directories you want to make a HTML listing for. Copy AutoIndex.rexx to SYS:Rexx. From the shell, execute AutoIndex.def. From the WB, double-click the icon. Select the directories from the listview and press MAKE HTML. When you are done, aim your browser at any of these HTML files to see the brushes in the directory. DISTRIBUTION Freely distributable. MUInt and AutoIndex.rexx are © 1994, 1995, 1996 by Both Software. All rights reserved. The full MUInt archive may be found in Aminet as: dev/gui/MUInt_dev_v1.lha. Be the first on your block to download it. Enjoy! CAUTION Use this software at your own risk. The author is not responsible for damage. CREDITS Will Bow Richard Korber FOR THE INCURABLY SNOOPY Read both of the scripts. They are fully commented. MUInt might just amaze you. GLUTTONS FOR PUNISHMENT Check my web page: http://www.znet.com/~colin/