We have several instances in which it would be most helpful to be able to cause client Mac stations to play a specific audio alert, such as during fire drills, etc. Best if controlled from a remote station sending out scheduled commands via SSH.
For example, linux has a built-in “play” command that does this very thing. Is there such a command or script to do this in Mac OS X?
You can make the machine talk via the “say” command, but if you want to play an arbitrary sound file on command you’ll more than likely have to grab the AppleScript extension that adds this functionality to the language and invoke it via osascript.
Either way I wouldn’t advise relying upon a computer’s speaker for fire alarms.
You can make the machine talk via the “say” command, but if you want to play an arbitrary sound file on command you’ll more than likely have to grab the AppleScript extension that adds this functionality to the language and invoke it via osascript.
Either way I wouldn’t advise relying upon a computer’s speaker for fire alarms.
Thank you for your suggestion of the “say” command, khiltd. Is the AppleScript extension you mention somewhere on afp548.com?
And of course we have good old fashioned fire alarms in the hallways but some back offices like mine are too far away from the hallways to hear the alarms. This summer they’re going to install new sirens in every room. Currently our phone system also broadcasts an alert through their speakers during a fire alarm. We thought adding one more alert source would have our bases covered.