Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

index.r files

 [1/1] from: carl::rebol::com at: 10-Sep-2000 21:46


Ok, let me take a quick break from writing the new REBOL manual :) to spell out the general format of the index.r file. (Taking a break from writing to do some writing. Great.) Here's a quick summary of the index.r format that has been in affect for the last couple weeks. To see examples of these, right-click on any REBOL/View directory icon. That's actually the fastest way to create your own. The file starts with REBOL []. That can be followed by a QUIT if you want to keep it from being eval'd. It is then followed by any of these optional fields: name string! - a displayable name for the directory info string! - the help string shown for a directory when mouse is not on an icon. summary string! - a longer description that is reached by clicking on the ? button. If a summary is provided, the ? will light up. notice string! - a notice that pops in your face when you enter a directory. Keep these to a min. home file! | url! - the home path, if something other than where the index.r file is located (not tested) backdrop - can include these options: file/URL! - displays the image as the dir backdrop tuple! - if no image, uses this color effect block! - use an effect for the directory icon - put an icon in the directory, each has these options: name string! - a string to use for the icon on screen file! | url! - the file associated with the icon .r - runs the file .txt - shows as text .html - browses file .jpg, .gif, .png, .bmp - shows an image 'info string! - the help string displayed in the lower pane when the mouse moves over the icon integer! - the size of the file date! - not currently used, but will be used for auto-update 'dir - a flag used to link the icon to another directory 'always - a flag to download the targe file every time Anyone care to write an index.r file editor in REBOL/view? You could point it at a directory and it would build a first cut index.r (so you don't have to fill in the file sizes, etc.) Would also be helpful if you could have it refresh, updating the file sizes and removing files from an index.r that are no longer there. -Carl