REBOL Library REBOL

All Scripts

Updated: 29-May-2003

Return to main library index

A Button with Shortcut Key

button-key.r

1-Jun-2000

Shows how to easily add a shortcut key to a button.

1 line

230 bytes

 
Append to a Text File

ftpappend.r

26-May-1999

Append to a text file using FTP.

1 line

236 bytes

 
Check for Directory

ftpdircheck.r

26-May-1999

Check if a filename belongs to a directory using FTP.

1 line

257 bytes

 
Run Script from FTP

ftpdo.r

26-May-1999

Do a REBOL script via FTP.

1 line

193 bytes

 
Make a directory

ftpmakedir.r

26-May-1999

Make a file directory on an FTP server.

1 line

217 bytes

 
Read a Text File

ftpread.r

26-May-1999

Read a text file from an FTP server and print it.

1 line

215 bytes

 
Rename a File

ftprename.r

26-May-1999

Rename a file on a server using FTP.

1 line

213 bytes

 
Upload a File

ftpup.r

26-May-1999

Upload a binary file to an FTP server.

1 line

218 bytes

 
Write Text File

ftpwrite.r

26-May-1999

Write a text file to an FTP server.

1 line

216 bytes

 
Hello World Window

hello.r

20-May-2000

Opens a window that displays text and a quit button

1 line

234 bytes

 
Non-echoing Input

inhide.r

15-Sep-1999

Hide input for passwords (no echo characters)

1 line

200 bytes

 
REBOL Script in HTML File

inhtml.r

24-Apr-1999

Shows how to embed a REBOL subscript within an HTML document.

1 line

956 bytes

 
Email a Web Page

mailpage.r

10-Sep-1999

Send a web page. (simple)

1 line

221 bytes

 
Script with a Preface

preface.r

24-Apr-1999

Text before the REBOL header is ignored.

1 line

402 bytes

 
EMail Setup (for Send)

setemail.r

6-Nov-1997

Minimum set-up for sending email messages from REBOL.

1 line

842 bytes

 
Simple Script

simple.r

24-Apr-1999

The traditional Hello World example script.

1 line

208 bytes

 
View 3 Buttons

view-buttons.r

1-Jun-2000

Example of how to display three buttons down the page.

1 line

238 bytes

 
View HTML Code

view-html.r

1-Jun-2000

Fetch a web page and view its HTML code in a window.

1 line

232 bytes

 
View an Image in a Window

view-image.r

1-Jun-2000

View an image in a window.

1 line

264 bytes

 
Download Web Page

webget.r

20-May-1999

Fetch a web page and save it as a file.

1 line

217 bytes

 
Web Page Displayer

webprint.r

20-May-1999

Fetch a web page and display its HTML code.

1 line

207 bytes

 
Web Page Emailer

websend.r

20-May-1999

Fetch a web page and send it as email.

1 line

219 bytes

 
CLS

cls.r

3-Jul-2002

Clears the console screeen.

1 line

295 bytes

 
Content-Type

content-type.r

3-Jul-2002

Prints Content-type header for cgi.

1 line

374 bytes

 
Factorial

factorial.r

6-Jan-1999

Compute a factorial

2 lines

372 bytes

 
Delete a File or Directory

ftpdel.r

26-May-1999

Delete a file or directory from a server using FTP.

2 lines

278 bytes

 
Download a Binary File

ftpdownbin.r

26-May-1999

Download a binary file from an FTP server.

2 lines

278 bytes

 
Get File Size and Date

ftpinfo.r

26-May-1999

Get size and date information about an FTP file.

2 lines

306 bytes

 
Protecting Passwords

passprotect.r

15-Sep-1999

Prompt for password to use before transfer.

2 lines

270 bytes

 
Convert Line Terminators

reline.r

4-Jun-1998

Convert all line terminators to those used by the local computer. Works for PC, Mac, Unix, Amiga, and all others

2 lines

367 bytes

 
View an Image and its File Name

view-image-name.r

1-Jun-2000

Display an image in a window with its file name printed directly below it.

2 lines

355 bytes

 
View an Image behind File Name

view-image-name2.r

1-Jun-2000

Display an image with its file name on top of it.

2 lines

320 bytes

 
View A List of Data

view-list.r

1-Jun-2000

Example of how to display a simple block of data as fixed width columns in a window. Code is just one line.

2 lines

393 bytes

 
Search a Web Page

webfind.r

20-May-1999

Search a web page for a string, and save the page to a file if it was found

2 lines

310 bytes

 
ConsoleIO

consoleio.r

1-Aug-2002

Console prompt output save,saves all console input to history.log file when in console mode.

2 lines

527 bytes

 
Encoding Binary Data in REBOL Scripts

bin-save.r

30-May-2000

Example of how to save base-64 encoded binary data in REBOL scripts. (See bin-data.r as an example of how to decode the data.)

3 lines

396 bytes

 
CGI Form Emailer

cgimail.r

19-Jul-1999

Emails the contents input into a web CGI form.

3 lines

558 bytes

 
Read File Directories

ftpdir.r

26-May-1999

Read and print directories from an FTP server.

3 lines

308 bytes

 
POP Email Port Spec

popspec.r

10-Sep-1999

POP port specification used to connect to an email server. All of the mail reading examples use this.

3 lines

658 bytes

 
Time a Web Page

timepage.r

24-Apr-1999

Time how long it takes to fetch a web page from the net. (Just the HTML file, not the images.)

3 lines

317 bytes

 
Prompt for User and Password

userprotect.r

15-Sep-1999

Prompt for username and password to use for a transfer.

3 lines

317 bytes

 
Web Page Title Extractor

webtitle.r

20-May-1999

Find the title of a web page and display it.

3 lines

280 bytes

 
Display Black Text

black-text.r

1-Jun-2000

Display black text on a white background.

4 lines

283 bytes

 
Send Message to GSM Cellphone

cellphone.r

16-Jun-2000

To post a message via MTN's SMS gateway to a GSM phone

4 lines

1677 bytes

 
Email a Text File

mailfile.r

10-Sep-1999

Send a text file (as text of message).

4 lines

366 bytes

 
CGI Form Dumper

cgidump.r

19-Jul-1999

Display the contents of a submitted form as a web page. Useful for debugging CGI forms.

5 lines

605 bytes

 
Digital Clock

clock.r

2-Apr-2001

Displays a simple digital clock in its own window.

5 lines

418 bytes

 
Comma-Seperated-Values to REBOL converter

convert-csv.r

16-Jun-1999

Convert CSV files to REBOL blocks

5 lines

529 bytes

 
Download List of Files

ftpdown.r

26-May-1999

Download a list of binary files using FTP.

5 lines

335 bytes

 
Upload Several Files

ftpupload.r

26-May-1999

Upload multiple files with FTP using login and password.

5 lines

340 bytes

 
Keep an ISP Connection Alive

keep-alive.r

16-Sep-1999

This script can be used to keep an ISP connection alive by accessing the net every so often.

5 lines

622 bytes

 
Save Email to File

mailsave.r

10-Sep-1999

This example reads all email and saves it to a file.

5 lines

500 bytes

 
Check for REBOL Pro Features

licensed.r

18-May-2001

An example of how to detect View/Pro and Command special features.

5 lines

456 bytes

 
Check Web Servers

check-server.r

16-Sep-1999

This script can be used to query a web server, and email webmaster if it fails.

6 lines

612 bytes

 
Check for a File or Directory

ftpcheck.r

26-May-1999

Check for the existence of an FTP file or directory.

6 lines

382 bytes

 
REBOL Prompt Setter

set-prompt.r

16-Jun-1999

Demonstrates how to set the prompt in REBOL

6 lines

433 bytes

 
Text Size Check

text-size.r

1-Jun-2000

Compare text font sizes

6 lines

302 bytes

 
Update from WWW.REBOL.COM

update.r

12-Oct-1998

Updates your rebol.r and reboldoc.r files from the web.

6 lines

378 bytes

 
Average

average.r

3-Jul-2002

Averages the values in the Block.

6 lines

474 bytes

 
Celcius

celcius.r

3-Jul-2002

Converts Temperature in Fahrenheit to Celcius.

6 lines

533 bytes

 
Fahrenheit

fahrenheit.r

3-Jul-2002

Converts Temperature in Celcius to Fahrenheit.

6 lines

552 bytes

 
Source

source.r

3-Jul-2002

Prints the script source code for a word.

6 lines

446 bytes

 
Rebol Daytime Server

daytime.r

4-Dec-2002

A simple Rebol Daytime Server, answers are sent in Rebol date format.

6 lines

549 bytes

 
Images Buttons

button-image.r

20-May-2000

Example of how to make buttons made from images. Clicking on a button updates text in the window.

7 lines

550 bytes

 
Ellipse Demo

ellipse.r

20-May-2000

Ellipse Demo

7 lines

518 bytes

 
Transfer REBOL Files to Server

ftpallto.r

18-Dec-1997

FTP all .r files in the current directory to a server.

7 lines

386 bytes

 
Gradient Multiply

gmul.r

20-May-2000

Gradient Multiply

7 lines

355 bytes

 
Total Size of .r Files

sizedir.r

24-Apr-1999

Print the total size of all .r files in the current directory.

7 lines

352 bytes

 
Tint demonstration

tint.r

20-May-2000

Tint demonstration

7 lines

488 bytes

 
Download Multiple Pages

webgetter.r

20-May-1999

Fetch several web pages and save them as local files.

7 lines

336 bytes

 
Upload all HTML Files

ftphtml.r

26-May-1999

Upload a group of files to an FTP server.

8 lines

397 bytes

 
List FTP upload

listftpupload.r

22-Jun-1999

FTP upload multiple files using login and password. Supports a full upload or partial for updates from lists in %sitedata.reb and %siteupdate.reb.

8 lines

1386 bytes

 
Email Message Sender

mailsend.r

10-Sep-1999

A very simple way to send an email.

8 lines

459 bytes

 
Print Mailbox Subjects

mbxsubjects.r

4-Jun-1999

Prints all the mail subject lines for a Eudora mailbox file.

8 lines

599 bytes

 
Quine

quine.r

20-Nov-2001

A Rebol quine; a program which reproduces its own code.

8 lines

512 bytes

 
udp2bc

udp2broadcast.r

21-Aug-2001

udp input forwarded/redirected as broadcast

8 lines

718 bytes

 
Easy CGI Form Example

cgiform.r

19-Jul-1999

Handles a CGI form and returns its values as a web page. (The associated cgiform.html file contains the form).

9 lines

954 bytes

 
Find Invalid Chars

findchars.r

4-Jun-1998

Finds odd unprintable ASCII characters in a file

9 lines

476 bytes

 
Gradient in all Directions

grad-all.r

20-May-2000

Displays all gradient directions.

9 lines

492 bytes

 
Input via CGI

input-cgi.r

20-Jul-1999

Get CGI input with either POST or GET

9 lines

547 bytes

 
Email Text Files

mailfiles.r

10-Sep-1999

This example sends a group of text files as separate messages.

9 lines

558 bytes

 
Email Friend Monitor

mailfriends.r

10-Sep-1999

This example displays messages that come from "friends" only. All others will be ignored.

9 lines

749 bytes

 
Email Group Sender

mailsendgroup.r

10-Sep-1999

A very simple way to send email to a group.

9 lines

521 bytes

 
Tiny REBOL Server

rebserver.r

11-Oct-1999

The distributed REBOL server that builds the REBOL system.

9 lines

786 bytes

 
Reflection Demo

reflect.r

20-May-2000

Reflection Demo

9 lines

577 bytes

 
Search Multiple Web Pages

webfinder.r

20-May-1999

Search multiple web pages for a string, and print the URL of the ones where it was found.

9 lines

429 bytes

 
Send Pages Every Hour

webloop.r

20-May-1999

Send a set of pages via email every hour.

9 lines

380 bytes

 
File Compress and Decompress

compress.r

16-May-2001

An example file compression utility.

9 lines

604 bytes

 
Broadcast

facebroadcast.r

1-Oct-2001

UDP broadcast example

9 lines

559 bytes

 
Image to binary

img-to-bin.r

26-Mar-2002

To return binary representation of the image.

9 lines

481 bytes

 
Object Cloner

cloneobj.r

30-Jun-2000

Clone objects recursively. This way the objects inside are copies instead of references.

10 lines

656 bytes

 
Data Directions

directions.r

9-May-1999

Illustrates the data descriptive capabilities of REBOL -- Gives the road directions to the REBOL office from San Francisco. Readable by humans and by REBOL.

10 lines

572 bytes

 
Interactive FTP Downloader

ftpdownload.r

26-May-1999

Download a group of files from an FTP server, prompting for each file along the way.

10 lines

513 bytes

 
Simple GradCol Example

gradcol.r

20-May-2000

Simple GradCol Example

10 lines

565 bytes

 
Gradient Colorize

gradcol-all.r

20-May-2000

Displays gradient colorize in all directions.

10 lines

519 bytes

 
Gradients demonstration

gradient.r

20-May-2000

Gradients demonstration

10 lines

632 bytes

 
Reflect all Directions

reflect-all.r

20-May-2000

Displays all reflection directions.

10 lines

493 bytes

 
Time Several Web Sites

timesites.r

24-Apr-1999

Time how long it takes to read several web home pages. (Just the HTML file, not the images.)

10 lines

455 bytes

 
Web Page Change Detector

webcheck.r

20-May-1999

Determine if a web page has changed since it was last checked, and if it has, send the new page via email.

10 lines

500 bytes

 
Get All Library Scripts

weblib.r

20-May-1999

Downloads all scripts from the REBOL script library

10 lines

543 bytes

 
Web HTML Tag Extractor

websplit.r

20-May-1999

Separate the HTML tags from the body text of a document.

10 lines

452 bytes

 
a simple alert example

alert.r

28-Aug-2001

introduces alert to the beginner

10 lines

573 bytes

 
Itemize

itemize.r

3-Jul-2002

Appends Value to Values, if Value not all ready in block.

10 lines

541 bytes

 
Pop

pop.r

3-Jul-2002

Returns the first value in a series and removes it from the series.

10 lines

556 bytes

 
CopyCon

copycon.r

25-Aug-2001

Inline Line-Editor for Rebol Console mode, you can extent by loading/saving/exeucting the buffer

10 lines

662 bytes

 
Email Ping (Confirmation)

mailping.r

10-Sep-1999

Confirm certain email that contains a key word.

11 lines

775 bytes

 
Tokyo Tower Watcher

tokyotower.r

29-Nov-2001

To display a picture of the Tokyo Tower, updating every 60s

11 lines

761 bytes

 
Push

push.r

3-Jul-2002

Inserts a value into a series and returns the series head.

11 lines

624 bytes

 
tcp2bc

tcp2broadcast.r

22-Aug-2001

tcp input forwarded/redirected as udp broadcast

11 lines

717 bytes

 
Email Sniffer

mailsniff.r

10-Sep-1999

Example of how to search all incoming email for particular keywords.

12 lines

789 bytes

 
Dictionary Lookup

dict.r

12-Jun-2001

Uses the Merriam-Webster website for dictionary and thesaurus lookups, without using their form. Just a small utility really.

12 lines

722 bytes

 
Sends Email via CGI Form

cgiemailer.r

20-Jul-1999

Uses a Web form to send an email message.

13 lines

661 bytes

 
Count References on Web Pages

countweb.r

18-Dec-1997

Count the number of times a string appears on each of a given set of web pages.

13 lines

546 bytes

 
Send Email with Buttons

emailsend.r

20-May-2000

A very simple email sending application that shows how text is input and buttons are used.

13 lines

650 bytes

 
Search Web Pages

findweb.r

18-Dec-1997

Simple example of searching multiple web pages for a specified string.

13 lines

534 bytes

 
Include Files

include.r

5-Nov-1997

A useful function for "including" a single file or a block of files. Web and other file paths are allowed.

13 lines

680 bytes

 
REBOL Random Password Generator

rand-pass.r

16-Jun-1999

To use the system password file to generate a random set of passwords for every user on the system.

13 lines

842 bytes

 
Rot-13

rot-13.r

21-Oct-1999

To Encode and Decode Rot-13 strings

13 lines

1030 bytes

 
RIM Room

rim-room.r

1-Jun-2001

An example chat room for RIM using RIM Bot.

13 lines

773 bytes

 
Demo client with telnet-protocol

telnet-client.r

6-Jul-2001

A simple telnet-client

13 lines

665 bytes

 
Leap-Year

leap-year.r

3-Jul-2002

Returns true for a leap year.

13 lines

594 bytes

 
Interweave

interweave.r

18-Jul-2002

Combines two series into one series by interleaving their values.

13 lines

813 bytes

 
keyboard input sequencer

keyb.r

3-Aug-2002

a replacement for the missing keyboard input sequences table in REBOL/Core User Guide Version 2.3, Appendix C-4

13 lines

743 bytes

 
Increment and Decrement

incdec.r

24-Apr-1999

Increment and decrement a variable by one.

14 lines

462 bytes

 
Email Send With CC

mailcc.r

10-Sep-1999

Example of how to include CC addresses on an email header.

14 lines

522 bytes

 
REBOL Vision

rebcam.r

22-May-2001

Fetch Webcam image at a specified refresh interval.

14 lines

609 bytes

 
Time a Block

timeblk.r

28-Oct-1998

Times the execution of a REBOL block.

14 lines

725 bytes

 
Web Page Link Displayer

weblinks.r

20-May-1999

Display all of the web links found on a page.

14 lines

542 bytes

 
Decode Charset Function

decode-charset.r

23-Aug-2001

Converts 'charset values to something readable

14 lines

718 bytes

 
Round

round.r

3-Jul-2002

Rounds a number at any given place.

14 lines

1091 bytes

 
Untitled

showtree.r

15-Jan-2003

ShowTree is a dir-tree like, easy to use. GPL script !

14 lines

718 bytes

 
99 Bottles of Beer Song

beersong.r

26-Apr-1998

The correct song. A bit more advanced.

15 lines

594 bytes

 
Dialog Box

dialog.r

20-May-2000

Pops up a dialog requestor that displays a message and waits for the user to click a button.

15 lines

663 bytes

 
Fish 'n Strips

fish.r

6-Jun-2000

Fun with Transparency

15 lines

615 bytes

 
Trivial Email List Server

mailserver.r

10-Sep-1999

As simple as a list server gets.

15 lines

1090 bytes

 
Parse REBOL Source - Recent!

parse-code.r

29-May-2003

An example of how to parse REBOL source code.

15 lines

745 bytes

 
Progress Bar

progress.r

20-May-2000

Shows a progress bar in a dialog box.

15 lines

529 bytes

 
http/1.1 get

http-get.r

31-Aug-2001

dumps the response header from requesting a file via TCP from a host using http/1.1

15 lines

934 bytes

 
99 Buckets of Bits Song

geeksong.r

26-Apr-1998

The geeky version :)

15 lines

682 bytes

 
Arguments

arguments.r

22-Mar-2002

Returns the arguments of the function.

15 lines

632 bytes

 
Month

month.r