Page 1 of 1
Integration with BTSync - Move Folders when Synced

Posted:
Tue Apr 28, 2015 11:07 am
by rv10guy
I am trying to integrate Hazel with BTSync. The scenario is that I have a folder that is syncing via BTSync and I want to copy that folder to a new location once the folder is fully synced. The method for determining that the folder is synced is that none of the files within the folder have the extension "bts".
So basically I need a rule (or set of rules) that says look in a folder if none of the files have the extension "bts" then copy the folder.
I have gotten as far as looking at the files within a folder but I cannot figure out how to look at all of them as a group and cause an action on the folder.
If any of you gurus could help that would be greatly appreciated.
Thanks!
Re: Integration with BTSync - Move Folders when Synced

Posted:
Tue Apr 28, 2015 11:52 am
by Mr_Noodle
You want to use a nested condition for this. Hold down option while clicking the + button to create a new condition. There, you can select all/any of it sub-files to specify conditions to apply to the folder's contents. The actions will still apply to the folder.
Re: Integration with BTSync - Move Folders when Synced

Posted:
Wed Apr 29, 2015 11:07 am
by rv10guy
Thanks I will give that a try. I am having another weird problem with these BTSynced folder.
BTSync initially places the file in the directory and adds a .bts extension. Then when the sync is complete the .bts extension is removed. For some reason Hazel does not recognize this name change and does not process the files. I know the rules are working correctly because when I tell it to run the rule is goes forward with the move.
My suspicion is that because I initially tell Hazel to ignore the .bts extension that it somehow does not see the renaming of the file as a new file and so it does not run, but doing a manual run causes it to reexamine the files and go ahead and process them.
Is there any workaround for this?
Thanks,
Scott
Re: Integration with BTSync - Move Folders when Synced

Posted:
Wed Apr 29, 2015 11:34 am
by Mr_Noodle
Can you post the rule?
Re: Integration with BTSync - Move Folders when Synced

Posted:
Wed Apr 29, 2015 4:09 pm
by rv10guy
Re: Integration with BTSync - Move Folders when Synced

Posted:
Thu Apr 30, 2015 2:45 pm
by Mr_Noodle
Are these files in a subfolder or directly in the folder being monitored by Hazel? Open the logs and see if there's any activity around the time when the .bts extension was removed.
Re: Integration with BTSync - Move Folders when Synced

Posted:
Mon May 04, 2015 10:32 am
by rv10guy
These are not in a subfolder. Also there is no activity in the log after the file is renamed. But, something weird just happened. I had already looked at the logs a fews days ago but decided i should recheck before I wrote this response. I opened up Hazel to look at the logs and it started processing all the files immediately.
Re: Integration with BTSync - Move Folders when Synced

Posted:
Mon May 04, 2015 12:25 pm
by Mr_Noodle
That's probably because you opened the pref pane, which will start processing all the folders after a delay. I do notice the custom icon plus badge on the folder. Can you tell me more about this folder? Is it a special Dropbox folder or a network share?
Re: Integration with BTSync - Move Folders when Synced

Posted:
Mon May 04, 2015 1:41 pm
by rv10guy
No it is a locally attached drive. The folder is synced by BTSync
Re: Integration with BTSync - Move Folders when Synced

Posted:
Tue May 05, 2015 10:45 am
by Mr_Noodle
Try the following:
- Rename the folder and rename it back.
If that doesn't work:
- Export your rules.
- Remove the folder from Hazel.
- Add the folder back in
- Import your rules back in, re-enabling them as necessary.