Jan Schenkel janschenkel at yahoo.com
Mon Jan 19 06:04:32 EST 2009

--- Randall Reetz <randall at randallreetz.com> wrote:
> On Jan 18, 2009, at 10:53 PM, Jiro Harada wrote:
> > What dose "OS level system wide file IO event"
> mean concretely?
> Example... user saves a file... at the moment it is
> saved... I want  
> notification of this file IO event sent as a message
> to a rev stack.
> Other system level events I would like to subscribe
> to:
> 1. file/folder/alias creation, open, edit, delete,
> save as, etc.
> 2. application launch, sleep, quit, mimimize, etc.
> 3. computer launch, shut down, etc.
> 4. key board strokes (words, and combos.)
> _______________________________________________
> Add to this...
> File and folder rename and move events.  File system
> and Browser navigation, and search terms used.
> Again, i want OS events to trigger messages sent to
> stacks or a master stack in real time... as they
> happen.
> Ideally, the user could set up preferences atom
> subscribe to some events and ignore others.
> randall

Hi Randall,

Java will not come to your aid for this one, I'm
afraid (*). The support for such events varies widely
accross platforms, and there's no real standard that
Java (or the Rev team) could adopt.

In fact, you may have to tap into the operating system
kernel to get this sort of information, and find away
to hook into its Find mechanism when we're talking
about browser navigation.

It would be a brilliant project, but not to be
undertaken without a thorough knowledge of C and file
systems on multiple platforms, with some assembly

Jan Schenkel.

(*) Even in the upcoming Java 7 NIO revisions, there's
no mention of such events.

Note that the JNA (Java Native Access -
<https://jna.dev.java.net/>) project has an example
FileMonitor (Win32 only), but JNA is basically Java
syntax sugar-coating for the native OS API so you're
still researching and building code for each platform

Quartam Reports & PDF Library for Revolution

"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)


More information about the Use-livecode mailing list