multiple Rules NOT WORKING Hazel NOT User Friendly

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

Moderator: Mr_Noodle

Really regretting that I told my company to buy this product the family pack at that. This forum sucks we can't place an image into it. Unless it has a url address?

All I'm trying to do is set rules on a folder:

1: If "any" of the following conditions are met for "the file or folder being matched"
"Date Added" / "is not in the last" / "5" / "Minutes"

Do the following...
"Send Growl notification" with pattern: "file" / "time" / "New Prefix"

The above works!

Problem is if I am away from my computer I want to create rules at every 5 minutes for about an Hour so that more that likely I will see the Growl note (GROWL does not have an option to keep the notice up for more than 10 seconds).

But when I create more if conditions such as:
If "any" of the following conditions are met for "the file or folder being matched"
"Date Added" / "is not in the last" / "10" / "Minutes"
And so on the 1st rules will work at the 5 minute mark but none of the other rules will send the Growl note.

I have tried both options If "any" & "all" thinking "any" is the one I would need in this case.

I have tried build this all in one rule & all as separate rules. CAN NOT GET IT TO WORK.

HAZEL SHOULD BE USER FRIENDLY!
brianedl
 
Posts: 26
Joined: Tue Jun 05, 2012 10:08 am

Images are not allowed because there have been problems with spammers here. There are tons of free services out there where you can upload images, like http://imgur.com/ (I don't even think an account is needed there).

I think your problem is you are not paying attention to the order of the rules. If you think about it, any file that has been added more than 10 minutes ago was also added more than 5 minutes ago. In that case, the first rule is the one that will be executed. You need to change the order of the rules to establish priority. Use the rule preview to check your work.
Mr_Noodle
Site Admin
 
Posts: 11551
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Thanks for the Image link.

I do not understand what you are talking about with the order of the rule but I tried it anyway & it still did not work? I did notice that when I created a rule to move a copy of a file based on the beginning of the name to an other folder & then delete the original (Move to trash) that I had to flip those; Putting "Move to trash" first (At the top) Then second "Copy file to" (Below). Still not sure way it would go in this order, but like you said I put

If "any" of the following conditions are met for "the file or folder being matched"
"Date Added" / "is not in the last" / "15" / "Minutes"
"Date Added" / "is not in the last" / "10" / "Minutes"
"Date Added" / "is not in the last" / "5" / "Minutes"

Do the following...
"Send Growl notification" with pattern: "file" / "time" / "New Prefix"

This is not working? I did look around in the rule preview (It crashed my System Preferences) so I relaunched & looked around but did not see anything that would seem to help???
brianedl
 
Posts: 26
Joined: Tue Jun 05, 2012 10:08 am

The order of the rules matter. Search the help on rules as it explains it in more detail there.

In your example, you have 3 conditions in same rule which are redundant. I was under the impression you wanted to do something different for a file that was 5 minutes old, as opposed to 10 minutes. If that's the case, you need to split those each into their own rules and order the rules properly.
Mr_Noodle
Site Admin
 
Posts: 11551
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Growl has plenty of options for leaving notifications on the screen.
There are options to make sticky notifications, that only disappear when clicked.
Or you can set all missed notifications to go to the rollup.
Skeo
 
Posts: 31
Joined: Mon Jan 02, 2012 7:53 pm

Thanks Skeo found how to have Growl note stay until clicked, that helps. Still not sure why we have to create 12 separate rules could you just have in one rule.

Please let me know if I'm understanding this correctly.

I would like to have a watched folder that when files are added to it it will move the file based on the beginning of there name.

Example file: ILCJ54-XXXXXX-XXXX-AA01.ai

Example rule:
Image

& this works!

But I also have the same watched folder that if a "folder" was added into it & it could be named anything lets say "C520 Electrical" & inside of it there are files named ILCJ54-XXXXXX-XXXX-AA01.ai that it will move that folder & the files inside to the same spot. The way I have this working is by the other rule shown below.
Image

The difference is in the line
If "any" of the following conditions are met for "the file or folder being matched"
or
If "any" of the following conditions are met for "any of its sub-files or folders"

BUT my question is, can I have the same outcome but not have to create 2 separate rules? Keep in mind I already have to create a new rule (at least I think I have to because they all have different destinations) for every different kind of file name & I have a lot of them see image (If I were to scroll down you could see them all).
Image

& I will have to maintain these when new file name types are added to our work load. So if I have it correct above then I will have to create & maintain 2 rule sets for each file name type 1 for moving the files that are added & 1 for when a folder with files inside of it are added.
brianedl
 
Posts: 26
Joined: Tue Jun 05, 2012 10:08 am

I can't tell the exact pattern since you only showed one instance of it but search the help for "match patterns".

Also, remove the "any file" condition. It makes no sense/confuses matters when you use it with other conditions. It's meant to be used by itself.
Mr_Noodle
Site Admin
 
Posts: 11551
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

I deleted the rule "Any file" Thanks. "match patterns" is great now I'm glad I bought Hazel again! But that is not what I was getting at.

Above I spelled out how I have things working good. The question is in order to have these 2 things happen:

1) When "files" are copied into the watched folder they will be moved base on the beginning of the name to a certain other folder & there are many file name types such as ILCJ54-XXXXXX-XXXX-AA01.ai or ILDE83-XXXXXX-XXXX-AA01.ai or ILCN15-XXXXXX-XXXX-AA01.ai & so on. (I have created a rule for each file name type & like I said this is working great)

2) When a "folder" full of files inside of it with names such as the examples above ILCJ54... is copied into the same watched folder plus the folder name could be anything like for example "C520 Electrical" & that "folder" "C520 Electrical" full of files will be moved base on the beginning of the name of the files inside the "folder" "C520 Electrical" to a certain other folder just like the "files". (I have duplicated a rule for each file name type & like I said this is working great it moves the whole folder with files inside it to the same correct spot as it does the "files" in rule 1 above)

Question: For this to work do I have to have it as I do with 2 separate rules for each file name type as shown above or is there a way to accomplish this with 1 rule for each file name type?
brianedl
 
Posts: 26
Joined: Tue Jun 05, 2012 10:08 am

If I understand you correctly, you want to move a folder based on the same pattern of the files within it? Assuming all the files within that folder have the same pattern, you can use match patterns and do something like:

Code: Select all
If all match any sub-file/folder
  If name matches (•whatever)...

Sort into folder (•whatever)


I think that should do what you want.
Mr_Noodle
Site Admin
 
Posts: 11551
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Yes & No. I do want that & I do have that working see pics above. The question is to get this to work on both files being dropped in a watched folder & moved based on name plus a folder filed with files dropped on the same watched folder & it is moved based on name of files inside of it; do I need to have 2 separate rules as I have it (as shown above) or can I get it to work by just creating 1 rule?
brianedl
 
Posts: 26
Joined: Tue Jun 05, 2012 10:08 am

It's a bit awkward and cumbersome, but something like?

Code: Select all
If any match for the file being matched
    If all match for the file being matched
        Kind is Folder
        If all match for any subfile
            If name matches (•whatever)...
    If name matches (•whatever2)...

Then
    Sort into folder (•whatever)(•whatever2)


Only one of the two custom tokens should have a value (I think). I think it might be easier and clearer with two rules.
Mr_Noodle
Site Admin
 
Posts: 11551
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support