tapping into finder events

Randall Lee Reetz randall at randallreetz.com
Thu Jan 10 17:34:56 EST 2008


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





More information about the use-livecode mailing list