View Single Post
Old July 6, 2020, 22:13   #2
Join Date: Apr 2009
Location: Pisa / DL0
Posts: 915
fph is on a distinguished road
On Mac it's easy because it is a Real Unix (TM) and it has a cron daemon. This command (test it in a terminal) should play the sound file /System/Library/Sounds/Funk.aiff :

afplay /System/Library/Sounds/Funk.aiff

If you confirm that this command works, there is a way to run it automatically each day at a given time. Run this in a terminal:

env EDITOR=nano crontab -e

This will open an editor; insert the following line in the file:

59 12 * * * afplay /System/Library/Sounds/Funk.aiff

This will run the command at 12:59 each day. Then save the file with CMD-S and exit with CMD-X. If you wish to undo this or change the time, just run the same command and edit the file again, remove that line, or comment it out by prepending a # character.

Warning: I don't have a machine running Mac OS around, so I could not test it first-hand; I checked everything by googling.

Bonus: if you replace the third (last) asterisk with 1-5, it runs the command only on weekdays 1-5 (Monday to Friday).
Dive fast, die young, leave a high-CHA corpse.
You read a scroll labeled 'lol gtfo' of Teleport Level.

Last edited by fph; July 6, 2020 at 22:29.
fph is offline   Reply With Quote