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

[REBOL] Simple newbie questions

From: meta:dimensional at: 29-May-2001 20:24

Hey Gurus, I'm trying to piece together hints from the documentation on Core with the "more to come" online docs for View. (I wish there was a complete manual for View and Core together that made it all clear.) Anyway, as an exercise to help learn this stuff while creating something useful, I've started the following View script for renaming files. I have empty blocks for actions and am not sure what syntax will to accomplish what I want. I have fields but am not sure how to grab their values and do the actual renaming of file names. I can describe this in pseudo code but haven't internalized the REBOL way yet. There are comments in the script below where I have questions. Any suggestions will be most appreciated. Thanks, -Jamie REBOL [Title: "Rename Files"] mypath: %. allfiles: read mypath sort allfiles view layout [ backdrop effect [gradient 60.0.150 60.10.60] text-list data allfiles [] ;desired action is click to fill in the selected file into the find field below. across label 53 "Path" mypath: field ;desired capability is to change the path value in the mypath variable and cause the text-list to update with the contents of the new path. below across label "Find" 53 Findme: field below across label "Replace" Replaceme: field below Button "Rename" [] ;desired action is click to cause all instances of the string in the Find field to be replaced with the string in the Replace field, for for every file name in the mypath variable's path. ]