Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

callagga

macrumors member
Original poster
Mar 2, 2007
84
0
Hi,

Can anyone tell me the easiest way to play a WAV file (a short wave file) from the OS X shell / command line (.e.g in terminal).

Thanks
Greg
 
Well I've never used the shell to open a music file, but I have used it to open text files. You just have to use the path to the application followed by the path to the file you want opened, but this does require for the application to open, which may not be what you want. Maybe someone else will have a simpler solution.
 
I've gone with for the moment:

* downloading/installing "play sound" &

* using applescript to trigger this
Code:
tell application "Play Sound" to play ("Macintosh HD:Comedy Whistle.aif" as alias)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.