• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [OT] "Message" when file created.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [OT] "Message" when file created.


  • Subject: Re: [OT] "Message" when file created.
  • From: Le Stang Jean-Baptiste <email@hidden>
  • Date: Fri, 29 Jul 2005 14:55:32 +0200


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) : 

Here is a nice sample showing what can be done with 'kqueue(s)' :  <http://developer.apple.com/samplecode/FileNotification/FileNotification.html>

This sample includes a detailed PDF report explaining kqueue(s) .

I'd have thought that spotlight would use such a mechanism to index new files. Anyway, if I'm completely wrong here, let me know so that I don't waste any more time!


Well, do we really know what is running behind the scene?

++ JB (really curious about what is running behind the scene)

 _______________________________________________
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

  • Follow-Ups:
    • Re: [OT] "Message" when file created.
      • From: Chris Garaffa <email@hidden>
References: 
 >[OT] "Message" when file created. (From: Simon Forster <email@hidden>)

  • Prev by Date: Re: NSAppleScript: Compiling a script launches an application
  • Next by Date: Re: NSAppleScript: Compiling a script launches an application
  • Previous by thread: Re: [OT] "Message" when file created.
  • Next by thread: Re: [OT] "Message" when file created.
  • Index(es):
    • Date
    • Thread