I am trying to have Hazel monitor a folder's contents and upon any additions or changes to the files and folders within (at any level) to perform a sync with Transmit (via applescript embedded within the Hazel rule.)
The issue I'm running into is that I need to have the sync rule run only once. The sync action within Transmit will account for any new, updated or deleted files when updating the server to match the local folder.
If within Hazel I only check the top-level folder for changes ('Date Last Modified is after Date Last Matched') the rule only runs when items are added or changed within the first level beneath the that top-level folder. Any additions or edits within sub-folders do not seem to affect the 'Date Modified' for the top-level folder.
If I add a 'Process Subfolders' rule then additions or edits at any level fire off Hazel but the Transmit sync operation is run as many times as there are updated files when only once is needed.
I'm guessing I can have Hazel run some sort of upload script on a one-for-one basis with each updated file but this won't account for deleted files (right?) and also means firing off the supporting application or process many, many times.
Thanks in advance for any insights or help with this. I'm losing it
