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

How to Add Script to script library?

 [1/4] from: bpaddock:csonline at: 25-Nov-2001 18:01


I'm new at using the Rebol desk top, so far I'm not all that impressed, two out of two things I've tried have failed. I wanted to add my patent.r script to the script library, which I assumed was the intention of the "Add Script" icon, that any one could contribute some thing. However when I go to fill in the fields I get this error: ** Script Error: hdr has no value ** Where: set-field ** Near: set in hdr field to >> Next I tried to see what lrwp under the CGI folder did by clicking on its icon (I know it goes with the Xitami Web Server, that I run), and I got this error: ** Script Error: lrwp-agent-url has no value ** Where: context ** Near: xitami-port: open/direct lrwp-agent-url set-modes xitami-port >> What does that mean? Please don't kill this messenger here, but if Rebol is to be taken seriously by the rest of the world, then this stuff should *WORK* when you click on it, not come up with obtuse error messages. After all isn't it there to show the Power of Rebol, or maybe it is there to frustrate the curious??? To much time seems to be spent on building glitz, which is nice, but useless if it is not built on a stable documented foundation. I'd rather have a text command app. that runs than a GUI app that does not...

 [2/4] from: john_kenyon:mlc:au at: 26-Nov-2001 10:44


Bob,
> However when I go to fill in the fields I get this error:
Never tried using it before, but start with selecting the file you wish to upload to the script file. This will then populate half the fields for you if your header is written following the usual conventions. Probably worth dropping a note to feedback about the strange error when adding the fields manually.
> What does that mean? > lrwp-agent-url has no value
A fair number of the scripts in the library are designed with examples and do not run when just clicked. The lrwp script has the following lines at the bottom of the source code (which may be easily viewed by right clicking on the icon and hitting the edit button) ;The sample: ;The Xitami lrwp agent url ;lrwp-agent-url: tcp://localhost:81 ;Register the process for the app "sometest" ;lrwp/register-peer "sometest" ;Get the data ;cgi-data: lrwp/wait-for-action ;cgi-data now contains a block of values that you can use, posted or ;getted, you don't care ;for example make object! cgi-data ;print your result out using ;lrwp/respond my-content Reading the source code of many of the examples is very useful as they often include hints on how to use them.
> To much time seems to be spent on building glitz, which is nice, but
useless I tend to disagree with this as the View component of Rebol is rather recent in comparison to the stable, command line based, core component. A large number of scripts in the library do not use View at all (such as the lrwp script you mentioned). I hope this is useful. Regards, John

 [3/4] from: bpaddock::csonline::net at: 25-Nov-2001 19:20


> Never tried using it before, but start with selecting the file you wish to > upload to the script file. This will then populate half the fields for you > if your header is written following the usual conventions. > > Probably worth dropping a note to feedback about the strange error when > adding the fields manually.
It is uploaded now. A Would Be Nice item is the windows like "hover", put the mouse over the icon and it shows some kind of help, like "fields will be filed in with script header".
> A fair number of the scripts in the library are designed with examples and > do not run when just clicked.
Thats fine, but they should not crash, should come up and say what to do with them or how to apply them, not simply explode because they are clicked on out of context.

 [4/4] from: john_kenyon:mlc:au at: 26-Nov-2001 13:49


Bob, The "About" document in the script library contains the following paragraphs. ABOUT THE REBOL SCRIPT LIBRARY ------------------------------ This is an open library that contains hundreds of contributed REBOL scripts. The purpose of the library is to provide: 1) Simple examples of REBOL concepts for beginners. These scripts tend to be short - just a few lines. 2) Useful utilities that can be used as-is or easily modified to suit your purposes. 3) Advanced examples that are helpful to developers who are creating applications. 3) Debugged modules of functions and objects that can be used in your own REBOL applications. To use a script: 1) Right click on the script and select Edit. 2) The script will be downloaded and shown to you. Most scripts download about one second over a modem. 3) Review the script's source code. Cut and paste the parts you want, or if you think you want to run it, press CTRL-E in the editor, or go back and click on its icon. 4) Note that not all scripts display output in REBOL/View. Some scripts may briefly open the console or may run in the background without an interface. Some scripts are just examples and will not run at all. Regards, John