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

Need Some Help

 [1/8] from: davidba:speakeasy at: 15-Oct-2005 16:13


I'm new to Rebol, but I think it is excellent. I have a quick question or two that perhaps could be quickly answered. I saw at one time, a reference to a rebol script that will build index.r files in directories automagically. Has this been written, and could someone pass me a pointer to it. Next question deals with rebol software repositories. Is there some sort of central repository, or possible central index that could be viewed for finding rebol programs and scripts that have been submitted by people, so they can easily be accessed. If this is in a FAQ, or only common knowledge, I would appreciate someone helping a noobie like me out. Thanks, David B. Alford 633 Blom Drive San Jose, CA 95111 408.629.8634 408.375.6892 Mobile 408.516.8258 Fax [davidba--havewifiwilltravel--com] [davidba--wifietcetera--com] www.havewifiwilltravel.com www.wifietcetera.com http://stores.ebay.com/Have-WiFi-Will-Travel

 [2/8] from: Izkata::Comcast::net at: 15-Oct-2005 18:20


> I'm new to Rebol, but I think it is excellent. I have a quick > question or two that
<<quoted lines omitted: 3>>
> been written, and could > someone pass me a pointer to it.
I'm not sure what you're asking here....
> Next question deals with rebol software repositories. Is there some > sort of central > repository, or possible central index that could be viewed for > finding rebol programs > and scripts that have been submitted by people, so they can easily be > accessed.
http://www.Rebol.org

 [3/8] from: davidba::speakeasy::net at: 15-Oct-2005 16:46


I'm looking for something that generates the index.r file that you need in Rebol/View to be able to see file, folders, icons, and such to be able to double-click on them to invoke them. Does that make sense? David B. Alford 633 Blom Drive San Jose, CA 95111 408.629.8634 408.375.6892 Mobile 408.516.8258 Fax [davidba--havewifiwilltravel--com] [davidba--wifietcetera--com] www.havewifiwilltravel.com www.wifietcetera.com http://stores.ebay.com/Have-WiFi-Will-Travel On Oct 15, 2005, at 4:20 PM, Izkata wrote:

 [4/8] from: antonr:lexicon at: 16-Oct-2005 17:16


Hi and welcome, I went to www.rebol.org and used the "Find scripts" search bar to search for "generate site" which throws up a few possibilities. Doesn't look like they actually generate index.r files for rebsites as such, but they can give you techniques used to read, process and write files. You could also check out http://www.lexicon.net/antonr/rebol/util/rebsite.r http://www.lexicon.net/antonr/rebol/util/update-index.r http://www.lexicon.net/antonr/rebol/util/parse-index.r but (disclaimer) this system is large, so perhaps not very digestible for a beginner, and it contains a bug or two, since I haven't worked on it since before Rebol/View 1.3 was released. If you get lost or something doesn't work, don't be afraid to ask more questions. Anton.

 [5/8] from: greggirwin:mindspring at: 16-Oct-2005 11:43


Hi David, DA> I'm new to Rebol, but I think it is excellent. I have a quick DA> question or two that perhaps could be quickly answered. I saw at DA> one time, a reference to a rebol script that will build index.r DA> files in directories automagically. Has this been written, and DA> could someone pass me a pointer to it. I don't think it's been written, but in REBOL/docs/developer (on Viewtop) shows you what the file can contain. I've never delved into them myself, but it seems they can be very simple. I whacked the code below together very quickly, so I don't know how close it will get you, or how correct its results (plus it doesn't recurse through dirs), but maybe better than nothing as a starting point. -- Gregg REBOL [] buff: copy "" ; Put your title and summary here title: "Site Title" summary: "Site Summary" emit: func [value] [ append buff join reform value "^/^/" ] emit "REBOL [Type: 'index]" emit [ 'title mold title newline 'summary mold summary ] ; define links you want in your index.r file here. links: [ http://www.rebol.com http://www.rebol.org ] foreach link links [ emit ['link mold form second split-path link link] ] files: read %. ; This generates the "label" part of each file or folder entry filename: func [file] [mold form second split-path file] foreach file files [ emit either dir? file [ ['folder filename file join file %index.r] ][ ['file filename file file] ] ] print buff ; write %index.r buff halt

 [6/8] from: davidba::speakeasy::net at: 16-Oct-2005 11:50


Thanks Gregg for your help. I'm going to check out the code, see how it works. I appreciate the help. David B. Alford 633 Blom Drive San Jose, CA 95111 408.629.8634 408.375.6892 Mobile 408.516.8258 Fax [davidba--havewifiwilltravel--com] [davidba--wifietcetera--com] www.havewifiwilltravel.com www.wifietcetera.com http://stores.ebay.com/Have-WiFi-Will-Travel On Oct 16, 2005, at 10:43 AM, Gregg Irwin wrote:

 [7/8] from: volker:nitsch::gmail at: 16-Oct-2005 21:16


On 10/16/05, David Alford <[davidba--speakeasy--net]> wrote:
> I'm new to Rebol, but I think it is excellent. I have a quick > question or two that
<<quoted lines omitted: 3>>
> been written, and could > someone pass me a pointer to it.
I remembered Carl wrote something called make-index.r . Found it here: http://www.rebol.com/view/tools/make-index.r . Another one: http://www.mail-archive.com/[rebol-list--rebol--com]/msg10199.html
> Next question deals with rebol software repositories. Is there some > sort of central > repository, or possible central index that could be viewed for > finding rebol programs > and scripts that have been submitted by people, so they can easily be > accessed.
rebol.org
> If this is in a FAQ, or only common knowledge, I would appreciate > someone helping
<<quoted lines omitted: 14>>
> To unsubscribe from the list, just send an email to > lists at rebol.com with unsubscribe as the subject.
-- -Volker Any problem in computer science can be solved with another layer of indirection. But that usually will create another problem. David Wheeler

 [8/8] from: greggirwin::mindspring::com at: 17-Oct-2005 9:17


Hi David, Bit of a glitch in my message. It should have pointed you to http://www.rebol.com/view/docs/developer/reb-index.r as the script that shows what an index file can contain. -- Gregg

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted