[ALLY] Script Startup Suggestion
From: carl:rebol at: 25-Apr-2001 9:59
If your script needs to fetch files from the net before it opens a
window, it would be good to tell the user about it. Otherwise, the
user might think that your script does not work, and run it several
times or get frustrated.
Here's an easy way to tell the user:
flash "Downloading files..."
read-thru http://www/file1.jpg
read-thru http://www/file2.jpg
read-thru http://www/file3.jpg
unview
(BTW, note that you don't need to save the result of the read-thru.
To get the file later in your script, just use read-thru again and
it will be fetched from the disk cache.)
You can also tell the user what's downloading with a function such
as:
read-flash: func [url] [
if not exists-thru? url [
flash join "Downloading: " url
read-thru url
unview
]
]
read-flash http://www/file1.jpg
Will help your users to know what's going on. In a future release
we will add this capability to script header NEEDS field.
REBOL [
Title: "A script"
Needs: [http://www/file1.jpg http://www.file2.jpg]
]
and a downloading message will appear automatically. Would be nice.
-Carl
REBOL Technologies