tapping into finder events

Randall Lee Reetz randall at randallreetz.com
Thu Jan 10 18:59:18 EST 2008


With this type of solution, one must maintain one's own file and folder indicies  (to compair with the current official index). Should be obvious how big a task this would be if one wanted to generalize a solution to an entire user account or volume. Inefficient in the maximum.  

-----Original Message-----
From: "Randall Lee Reetz" <randall at randallreetz.com>
To: "How to use Revolution" <use-revolution at lists.runrev.com>
Sent: 1/10/2008 2:34 PM
Subject: RE: tapping into finder events

This is a folder leval delta notification but requires file leval polling. 

-----Original Message-----
From: "Scott Rossi" <scott at tactilemedia.com>
To: "Revolution Mail List" <use-revolution at lists.runrev.com>
Sent: 1/10/2008 1:21 PM
Subject: Re: tapping into finder events

Recently, Randall Lee Reetz wrote:

> The suggestions posted to my questions have all required polling, which is
> peridic comparison of what was with what is now.  This is scary inefficient
> compared with getting delta messages as they occure.

Not sure if you've already come across this, but it *looks* like the
underlying principles may be what you're after (for OS X only):

"... the FSEvents API. This API provides a mechanism to notify clients about
directories they ought to re-scan in order to keep their internal data
structures up-to-date with respect to the true state of the file system.
(For example, when files or directories are created, modified, or removed.)
It sends these notifications "in bulk", possibly notifying the client of
changes to several directories in a single callback. By using the API,
clients can notice such changes quickly, without needing to resort to
recursive polling/scanning of the file system."

http://developer.apple.com/documentation/Darwin/Reference/FSEvents_Ref/FSEve
nts/index.html

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design


_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution





More information about the use-livecode mailing list