Newbie

Talk, speculate, discuss, pontificate. As long as it pertains to Hazel.

Moderators: Mr_Noodle, Moderators

Newbie Thu Mar 15, 2012 2:13 pm • by wildhorsesfilm
I'm trying to just get Hazel to tell Growl to notify me when a new file is added to an existing folder that contains many existing files.

I'm either getting notification of ALL the files in the folder when I connect a Hazel rule to the folder, or nothing.

I used Folder Actions to successfully do this, but on a reboot Folder Actions stopped working. I was hoping Hazel would be the solution, but so far no luck.
wildhorsesfilm
 
Posts: 6
Joined: Thu Mar 15, 2012 2:09 pm

Re: Newbie Thu Mar 15, 2012 4:54 pm • by Mr_Noodle
Please post your rules. Can't say from your description.
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Newbie Thu Mar 15, 2012 5:05 pm • by wildhorsesfilm
IF ANY of the following conditions are met for ANY SUB-FILE OR FOLDER
DATE LAST MATCHED is BLANK
DATE LAST MODIFIED is AFTER DATE LAST MATCHED

Do the following:

SEND GROWL NOTIFICATION with pattern: FILE TIME FOLDER.

I have also tried:

If ALL of the following conditions are met for CURRENT FILE OR FOLDER
ANY FILE
DATE ADDED IS IN THE LAST 1 DAY

Do the following:
SEND GROWL NOTIFICATION with pattern: FILE TIME FOLDER
wildhorsesfilm
 
Posts: 6
Joined: Thu Mar 15, 2012 2:09 pm

Re: Newbie Fri Mar 16, 2012 9:01 am • by Mr_Noodle
In the first case, you are saying, match folders who have a file or folder underneath it that was never matched or was modified since last match.

In the second case, you are matching anything that was added in the last day (BTW, using "any file" here is superfluous. It really only makes sense when used alone in a rule).

I'm guessing the second one is the one you want. If not, describe exactly what it is you expect or want to happen as it's not clear to me.
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Newbie Fri Mar 16, 2012 11:03 am • by wildhorsesfilm
I have a folder on a remote server (ftp site) there are currently 30 or so files in that folder. When a file is added to that folder, I'm wanting to be notified. Ideally I'd like Hazel to copy the file to another server while leaving that original file on the ftp server.

I do video production and the audio files are dropped into a ftp site by the audio production company. When new files appear, I like them to be copied to the audio folder on the video server I use. But I also want the original file the audio guy dropped in the ftp site to remain on the ftp site for archival purposes.

(I wrote one rule that copied EVERYTHING from the ftp site to the video server when I only wanted to copy the files from the current folder. I tossed that rule, so I don't know what I did wrong there...)
wildhorsesfilm
 
Posts: 6
Joined: Thu Mar 15, 2012 2:09 pm

Re: Newbie Fri Mar 16, 2012 12:43 pm • by Mr_Noodle
So, maybe I'm missing something here but why not just:
Code: Select all
    If all for the current file
        date added is after date last matched

    Copy to <wherever>


If you have Growl set up, it will notify you of the copy.

Also, this assumes that the servers you are referring to are mounted as filesystems on the machine Hazel is running on.
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Newbie Fri Mar 16, 2012 12:48 pm • by wildhorsesfilm
Mr. Noodle,

I will give it a go. The Date Last Matched command I think is the one that was alluding my grasp.

The servers are mounted.

Thanks for your help.

Mark
wildhorsesfilm
 
Posts: 6
Joined: Thu Mar 15, 2012 2:09 pm

Re: Newbie Fri Mar 16, 2012 1:16 pm • by wildhorsesfilm
Didn't work. I put in another rule If ALL of the following conditions for current file or folder : ANY FILE

Do the following:

MOVE to folder: (folder "Test Folder")

No results. File didn't move or Growl alert.
wildhorsesfilm
 
Posts: 6
Joined: Thu Mar 15, 2012 2:09 pm

Re: Newbie Fri Mar 16, 2012 1:19 pm • by Mr_Noodle
How does it look in the preview? Also, what kind of network file system are you using to get at these folders?
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Newbie Fri Mar 16, 2012 1:26 pm • by wildhorsesfilm
Pilot error. Hazel wasn't running. I guess Mr. B hadn't awakened her yet.

It moved the file. BUt do I need to add another line for the growl alert?

And (man, am I demanding or what?) how can I be sure Hazel runs at login or startup?

Thanks,

Mark
wildhorsesfilm
 
Posts: 6
Joined: Thu Mar 15, 2012 2:09 pm

Re: Newbie Fri Mar 16, 2012 1:42 pm • by Mr_Noodle
Hazel installs itself in your login items. You may want to double check. If you load the pref pane again it will check when you load it up.

As for Growl alerts, certain file events like moving or copying will generate their own alert so an extra one usually isn't needed.
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Newbie Thu Dec 27, 2012 6:44 am • by christyfredrick
:D :D
Heyye Friends!!!

I am newbie Christy here and i am happy to be a part of Hazel.
christyfredrick
 
Posts: 2
Joined: Thu Dec 27, 2012 6:25 am
Location: USA


Return to Open Discussion