Page 1 of 1

Using Sync with Subfolders and Color Labels

PostPosted: Sat Jul 09, 2016 8:30 am
by Gidsey
Hi,
I am a new Hazel user and would appreciate help in refining a set of rules.

The scenario is that I wish to scan a folder, and all its subfolders and then create a copy all the JPEG Images that do NOT have a RED color label.

I'm currently using 2 actions to achieve this:

Image

Image

This is working fine - to a point. However if after the rule has run for the first time I add a RED color label to an image in the source folder it is not then removed from the destination folder (which is what I would like).

Surprisingly however it does work the other way (i.e. if I remove a RED color label from an image in the source folder it is immediately added to the destination folder).

Is there another step that I can add to ensure that any images that are subsequently labeled RED are removed from the destination folder?

Any help appreciated!

Re: Using Sync with Subfolders and Color Labels

PostPosted: Mon Jul 11, 2016 10:55 am
by Mr_Noodle
Do you want the file removed or just the color label?

Re: Using Sync with Subfolders and Color Labels

PostPosted: Mon Jul 11, 2016 1:53 pm
by Gidsey
Mr_Noodle wrote:Do you want the file removed or just the color label?


I want to remove the file.

Re: Using Sync with Subfolders and Color Labels

PostPosted: Tue Jul 12, 2016 1:32 pm
by Mr_Noodle
Not really doable at the moment as sync doesn't really allow you to choose which files in a folder get synced. You'll probably needs to write a script to handle that type of thing.

Re: Using Sync with Subfolders and Color Labels

PostPosted: Tue Jul 12, 2016 4:09 pm
by Gidsey
OK, thanks for the reply. A couple of questions:

When you say it's not doable 'at the moment' - does that mean there are plans to add this functionality to the sync feature in the future?

A with regard to writing a script, can I just clarify you mean using Applescript?

Thanks,
Chris

Re: Using Sync with Subfolders and Color Labels

PostPosted: Tue Jul 12, 2016 5:12 pm
by Mr_Noodle
Just means you can't do it now, without any notion of whether such a thing is in the works or not. I will take this as a vote in favor of such a feature but can't say much beyond the fact that it would require a good deal of work and it hasn't been requested much.

AppleScript, JavaScript or shellscript.