Perform an action after a folder has been processed

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

Moderator: Mr_Noodle

Hi,

I'd like to create rules for a folder that file away all items in this folder to different locations. After all files in my folder have been processed, I'd like to perform some custom action (trigger indexing the filed away items in this case).

However, I found no way to perform this action only once after the whole folder has been processed. The only possiblity was to execute my command in the file-away rule, i.e. once for each single file. Is there a way to execute this only one time at the end?

Thanks in advance.
fschoenm
 
Posts: 4
Joined: Thu Feb 14, 2013 11:11 am

The problem is there's no notion of "finished" in that Hazel just sees a stream of file events. It doesn't know that at some point, that marks the end of some sort of batch. You need to provide the logic of when it's finished.

In this case, are the files moved out of the folder? If so, then maybe you set a rule to trigger when the enclosing folder is empty. Otherwise, you'll have to indicate it some other way.
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support

cron