I want to create a bash script that will execute a one-off volume command at a certain time, however when I follow the instructions given I simply get an immediate print out of:
job 4 at Wed Jun 12 16:55:00 2019
My problem is similar to this question: How to run a script at a certain time on Linux?
However a user on there had commented the same problem I have had and this was not answered in the question, so I was wanted to know if anyone else has a solution to this. From my limited understanding the commands in mac should be similar if not identical to linux so let me know if there's anything I'm missing.
My executable file looks like this:
#!/bin/bash
osascript -e "set Volume 0" | at 16:55
Instead of altering the volume at the specified time, it immediately mutes the computer and prints out the text given above.