[REBOL] Re: REBOL IOS, many Q's. :)
From: rebol:optushome:au at: 2-May-2002 19:04
> Let's say, for example, that I have a process that needs to be aware of
> the arrival of a file. Rather than creating a daemon that constantly
> runs and watches for it, can IOS fire off a process the moment the file
> arrives? In other words, is it aware of the activities that it performs
> and can that awareness be passed on to scripts?
In this case you can have a reblet that you click on and make it sleep in
the background (doesn't even show on the taskbar if you don't want it too),
the script would ask link to notify of particular events (a call back) like
so
e.g insert-notify 'fileset-downloaded 'file-set-name :on-file
("on-file" being the function you've written to be called when a file
arrives.)
Also when you first run your app, it can check to see if files have been
syncronised to its file-set while it wasn't on-line or running.
If you need your app to run from the moment Link is connected (without user
intervention) then that would require a customised desktop (also easy).
Cheers,
Allen K