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

[ALLY] Script Startup Suggestion

 [1/4] 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

 [2/4] from: tbrownell::yahoo::com at: 25-Apr-2001 11:17


Any other suggestions? TBrownell Carl Sassenrath <[carl--rebol--com]> wrote: 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

 [3/4] from: arolls:bigpond:au at: 26-Apr-2001 3:32


> 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.
Yes, I have encountered that myself.
> 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
I'll have to run around to my scripts and clean up. :)
> REBOL [ > Title: "A script" > Needs: [http://www/file1.jpg http://www.file2.jpg] > ] > > and a downloading message will appear automatically. Would be nice.
That would be useful. I was thinking something like this should be built in. I didn't want to have to write such a function into all my little scripts. Of course, I could put the function into a separate file... But it needs to be loaded somehow, doesn't it? :) Anton.

 [4/4] from: petr:krenzelok:trz:cz at: 25-Apr-2001 19:35


----- Original Message ----- From: "Carl Sassenrath" <[carl--rebol--com]> To: "Rl" <[rebol-list--rebol--net]>; "Al" <[ally-list--rebol--net]> Sent: Wednesday, April 25, 2001 6:59 PM Subject: [REBOL] Script Startup Suggestion
> 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
<<quoted lines omitted: 26>>
> ] > and a downloading message will appear automatically. Would be nice.
Carl - that's nice ... and if you remember, it was requested some year ago. Just few questions here: - will the stuff be automatically downloaded thru cache? - can we specify any elements? e.g. Needs: [http://www/file1.jpg /C/app/some.dll core 2.5] how to specify version btw (IIRC field 'Needs was used for specifying Rebol product version, no?)? Thanks, -pekr-

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