Running rules only when a volume is mounted?

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

Moderator: Mr_Noodle

Running rules only when a volume is mounted? Sat Aug 03, 2013 12:14 pm • by smcrae
I just downloaded the Hazel trial. Very impressed so far. I had a specific use case
which is to move all files in a set of folders more than 4 years old to the same folder structure on a separate, removable drive. I did this with rules to iterate through the sub folders and move the required files retaining the folder hierarchy (based on examples I found online).

But how do I run these rules just when the removable drive is mounted? It obviously doesn't make sense for Hazel to try to move the files when it is not.

For now, I have paused the folder and disabled the rule until I figure how how to add an extra condition to only run when the removable drive is mounted.

Thanks for any advice or sample rule.
smcrae
 
Posts: 7
Joined: Sat Aug 03, 2013 11:43 am

You can just set the destination folder. If the drive is unmounted, the rule will fail but Hazel will retry the rule until it succeeds (which would be when it's mounted again).
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support