Checking one file against another

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

Moderator: Mr_Noodle

Checking one file against another Tue Oct 08, 2013 1:56 am • by pciccone
Hi.

Is there are a way in Hazel to compare if a file/folder is newer than another one?

Thanks in advance.
pciccone
 
Posts: 4
Joined: Tue Apr 24, 2012 3:24 pm

Re: Checking one file against another Tue Oct 08, 2013 1:06 pm • by Mr_Noodle
Can you describe what you ultimately want to do? In general, you would probably need a script for this but there may be specific cases where you can do it some other way.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Checking one file against another Tue Oct 08, 2013 2:11 pm • by pciccone
Hi.
Thank you for your reply.
I need to trigger the execution of a script whenever a given file has been updated. I keep a copy of the file somewhere else and I want to execute a script if there is a newer version of that file.

Hope this helps.
pciccone
 
Posts: 4
Joined: Tue Apr 24, 2012 3:24 pm

Re: Checking one file against another Wed Oct 09, 2013 12:23 pm • by Mr_Noodle
So you want one file to be processed when a totally different file is updated? In that case, you'll probably need to do a script.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Checking one file against another Wed Oct 09, 2013 1:36 pm • by pciccone
It's not a totally different file, it's a copy of the same file.
pciccone
 
Posts: 4
Joined: Tue Apr 24, 2012 3:24 pm

Re: Checking one file against another Fri Oct 11, 2013 3:39 pm • by Mr_Noodle
I don't think there's a way to have Hazel correlate the files without using a script unfortunately so I suggest going that route.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Checking one file against another Fri Oct 11, 2013 4:03 pm • by pciccone
OK, thanks.
pciccone
 
Posts: 4
Joined: Tue Apr 24, 2012 3:24 pm


Return to Support