I need a way in OSX to monitor folders and/or files for changes. When a folder content is changed (added, removed file, update file) or another folder has been added renamed or deleted.
There is way to do this thing in OSX ? There is A KINd of system service can be useful accesing to It by declares or some xojo plugin ?
Yes, I use MacFSEvents in MacOSLib and it works very well. Be aware, however, that MacOSLib is 32-bit and almost certainly never will be 64-bit compatible. That may or may not be important to you.
I’d like to think so. There are so many dependencies, though, that it looks very difficult. I’m secretly hoping that the forthcoming Interops feature coming to Xojo will make this more feasible.
This plugin can be very usefull for me. Thanks Sacha. I will take a look
It also crossplatform.
Also the MBS implementation of fseventsmbs is very interesting and I will compare with the Einghur…but I already have an MBS license …so…
Now a question raise to me and It is very important. Do an application monitoring system through FSEvent can be accepted on the MAS ? This is mission critical to me. Chiristian, Can u have any experinece on It ?
THanks
The MBS FSEVent class works in 64bit and can be used for MAS apps.
I use it quite extensively in one of my apps.
But be prepared to do a lot of work. FSEvent just gives you a notice ‘something’ changed. You will have to figure out what changed, keep a database, verify things yourself, …
To make it work right, you will need a lot of code and thoughtful planning how to implement it.