Integration with BTSync - Move Folders when Synced

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

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!
rv10guy
 
Posts: 5
Joined: Tue Apr 28, 2015 11:01 am

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.
Mr_Noodle
Site Admin
 
Posts: 11867
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

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
rv10guy
 
Posts: 5
Joined: Tue Apr 28, 2015 11:01 am

Can you post the rule?
Mr_Noodle
Site Admin
 
Posts: 11867
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Image
rv10guy
 
Posts: 5
Joined: Tue Apr 28, 2015 11:01 am

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.
Mr_Noodle
Site Admin
 
Posts: 11867
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

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.
rv10guy
 
Posts: 5
Joined: Tue Apr 28, 2015 11:01 am

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?
Mr_Noodle
Site Admin
 
Posts: 11867
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

No it is a locally attached drive. The folder is synced by BTSync
rv10guy
 
Posts: 5
Joined: Tue Apr 28, 2015 11:01 am

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.
Mr_Noodle
Site Admin
 
Posts: 11867
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support