Run rules on another folder

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

Moderator: Mr_Noodle

Run rules on another folder Fri Oct 28, 2016 10:49 am • by ewansou
Hi,

Any one has any idea on how to run rules to go to another folder?

For example, monitor Folder A for MP4 files. When MP4 file is detected, copy the MP4 file to Folder B. Then visit Folder C and run the rules stated for Folder C.

Is what i mentioned possible?

Thanks for the help
ewansou
 
Posts: 2
Joined: Fri Oct 28, 2016 10:24 am

Re: Run rules on another folder Fri Oct 28, 2016 11:54 am • by Mr_Noodle
Can you give a more concrete example as to why you need to do this?
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Run rules on another folder Sun Oct 30, 2016 9:01 pm • by ewansou
Mr_Noodle wrote:Can you give a more concrete example as to why you need to do this?



Sure.

I have a script. The script converts GIF files to MP4 files. The conversion of GIF files to MP4 files needs time.
My program are able to display out all GIF files that are inside a folder for guests to view. I do not want a GIF file to be shown to a guest when the MP4 conversion is taking place. Only when the according MP4 file is ready, then the GIF file can be displayed to the guest.

So my ideal flow is this

1) GIF file arrive at Folder C. After about 15 seconds, my script runs finish and the according MP4 file arrive at Folder A.
2) Folder A is being watched via Hazel. When a MP4 file is detected in Folder A, the MP4 file is copied to Folder B.
3) Then, Hazel will proceed to Folder C and move the GIF file in Folder C to Folder D.

Folder C: folder in which GIF files will be stored
Folder A: folder in which MP4 files are saved
Folder B: another folder in which MP4 files are copied to.
Folder D: any GIF files in this folder will be displayed to the guests.

Thanks for the help
ewansou
 
Posts: 2
Joined: Fri Oct 28, 2016 10:24 am

Re: Run rules on another folder Mon Oct 31, 2016 11:14 am • by Mr_Noodle
Thanks for the details. For something like that you'll need to use a script as that logic seems a bit specialized. If everything was in the same folder, you might be able to do something using built-in conditions but there's no way to do that across folders like that.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support