Programmatically mark file(s) to be ignored by Time Machine [closed]

There is a C function 'CSBackupSetItemExcluded' you can use to tell Time Machine to exclude a file.

You can find it documented here...

https://developer.apple.com/library/mac/documentation/MacOSX/Reference/Backup/#//apple_ref/c/func/CSBackupSetItemExcluded