January 5th, 2011, 08:32 PM #1
playing sound from command line
I need to play a sound from command line, but without actually opening itunes or any of the sort. Anyone know how to do this?
January 6th, 2011, 12:59 PM #2
Answer to the first part: "open" command handles most of audio files. I tried an .au file (from some Java program) and it played on QuickTime Player. A mp3 file was played on ITunes. But on both cases the file was played by the program.
January 10th, 2012, 05:39 PM #3
Also, if you found the file in Spotlight~Finder, drag-and-drop into Terminal after typing "afplay "