I would suggest looking into the header file for NSFileProviderUserInteractions. It provides the following hooks:
'Copy' : copying item(s) within the same provider 'CopyOut' : copying item(s) out of the provider
'CopyIn' : copying item(s) into a folder/root of the provider
You can access these hooks via the info.plist of you File Provider Extension. The header file provides an example of this.
I have personally used it to display an alert when preventing forbidden user actions. I expect you could also use it to call custom functions.
Hope this helps :)
Topic:
App & System Services
SubTopic:
Core OS
Tags: