Re: [OT] "Message" when file created.
Re: [OT] "Message" when file created.
- Subject: Re: [OT] "Message" when file created.
- From: Chris Garaffa <email@hidden>
- Date: Sun, 31 Jul 2005 19:28:39 -0400
On Jul 29, 2005, at 8:55 AM, Le Stang Jean-Baptiste wrote:
I seem to remember that there's a low level system message created when a file is created. Basically, when a file is created the system notices and does something which can be hooked into by other apps. Does this ring any bells with anyone? If so, can you point me in vaguely the right direction (a starter would be to get the terminology right!).
I'm not sure this is really the best place to talk about that, but you can have a look to 'kqueue(s)', that were introduced in Mac OS X.3, 'kqueue(s)' can detect file creation, file modification, and many other events related to file I/O. (could be a very good companion to folder actions) :
If you're more comfortable with Cocoa, try Uli Kusterer's UKKQueue class: < http://www.zathras.de/programming/sourcecode.htm>. I've used it with success, but have never tried calling it from AppleScript (you'd have to do that via "call method" in a Studio app).
-- Chris Garaffa |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden