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

[REBOL] Re: Script Startup Suggestion

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 > 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 - 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-