Page 1 of 1

Setting Up a Sound Notification to Play When File Downloads

PostPosted: Tue Sep 10, 2024 5:23 pm
by DarkAthena
Hello! I recently switched to Vivaldi for my browser and cannot set a custom sound to play when a download finishes. I know I can set Hazel to sound a notification when criteria are met so I have attempted to set up rules to play my sound when my Downloads folder receives a new file (within one minute). I've selected my preferred sound (.wav file) and have run tests. No sound is heard.

Notifications in Settings on macOS are enabled. The File meets the criteria. At this point, I figure I must be doing something wrong with the rules. Current rules image is here: https://imgur.com/a/VoqI5Cp

Thank you for any ideas!

Re: Setting Up a Sound Notification to Play When File Downlo

PostPosted: Wed Sep 11, 2024 11:04 am
by Mr_Noodle
Does it work if you use one of the system sounds?

Re: Setting Up a Sound Notification to Play When File Downlo

PostPosted: Wed Sep 11, 2024 2:57 pm
by DarkAthena
Mr_Noodle wrote:Does it work if you use one of the system sounds?


It does not work with a default sound.

Re: Setting Up a Sound Notification to Play When File Downlo

PostPosted: Thu Sep 12, 2024 8:37 am
by Mr_Noodle
Are you sure your rule is matching and being executed? Try the troubleshooting guide here: https://www.noodlesoft.com/kb/hazel-tro ... ing-guide/

Re: Setting Up a Sound Notification to Play When File Downlo

PostPosted: Thu Sep 12, 2024 11:50 am
by DarkAthena
Mr_Noodle wrote:Are you sure your rule is matching and being executed? Try the troubleshooting guide here: https://www.noodlesoft.com/kb/hazel-tro ... ing-guide/


It seems to be matching but the rule doesn't get run. It runs one rule and then stops.

2024-09-12 10:45:16.928 hazelworker[7427] Processing folder Downloads
2024-09-12 10:45:18.986 hazelworker[7427] Done processing folder Downloads
2024-09-12 10:48:31.004 hazelworker[7466] Running worker (v5.3.4) for folder with identifier: 16777221-1277845.
2024-09-12 10:48:31.005 hazelworker[7466] ###Arch: arm64
2024-09-12 10:48:31.005 hazelworker[7466] ###main load address: 0x1043d0000
2024-09-12 10:48:31.005 hazelworker[7466] ###Hazel Core load address: 0x1049e8000
2024-09-12 10:48:31.005 hazelworker[7466] ###Noodle load address: 0x104cd8000
2024-09-12 10:48:31.005 hazelworker[7466] ###CK load address: 0x1048d8000
2024-09-12 10:48:31.029 hazelworker[7466] Processing folder Downloads
2024-09-12 10:48:33.150 hazelworker[7466] BBEdit_15.1.2.dmg: Rule Newly Added Files matched.
2024-09-12 10:48:37.318 hazelworker[7466] Done processing folder Downloads


It doesn't process past the first rule "Newly Added Files".

If I turn off the Newly Added Files rule, then my rule plays the sound.

Re: Setting Up a Sound Notification to Play When File Downlo

PostPosted: Thu Sep 12, 2024 12:00 pm
by DarkAthena
It looks like if I append my sound rule to the Newly Added Files tag rule and change the triggering conditions I can get it to run.

Is there a way to specify half a minute? Example: Date Added is in the last 0.5 minute

Re: Setting Up a Sound Notification to Play When File Downlo

PostPosted: Fri Sep 13, 2024 8:44 am
by Mr_Noodle
The manual has a section on how rules work. If a file matches a rule, evaluation will stop. You need to use a "Continue" action if you want subsequent rules to be evaluated after a match.

Yes, you can use Date added and some sort of time constraint.

Re: Setting Up a Sound Notification to Play When File Downlo

PostPosted: Fri Sep 13, 2024 2:42 pm
by DarkAthena
Mr_Noodle wrote:The manual has a section on how rules work. If a file matches a rule, evaluation will stop. You need to use a "Continue" action if you want subsequent rules to be evaluated after a match.

Yes, you can use Date added and some sort of time constraint.



You are the BEST! Thank you for your help!