From: Alpha Chen Date: 2006-03-29T01:52:35+09:00 Subject: Re: Playing sounds on a Mac -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mar 28, 2006, at 11:21 AM, Ernest Obusek wrote: > I wrote a little timer application and I would like it to play a > sound when the timer has counted down to 0. You could always try RubyCocoa. From the main page (http:// rubycocoa.sourceforge.net/doc/): The next script plays all the system sounds. require 'osx/cocoa' snd_files =`ls /System/Library/Sounds/*.aiff`.split snd_files.each do |path| snd = OSX::NSSound.alloc. initWithContentsOfFile_byReference (path, true) snd.play sleep 0.5 end Alpha Chen 0xCDE1AD58 on keyserver.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFEKWnCTm5GrM3hrVgRAj3zAJ4tiRkOE4YgVoQQYP3f5opN7yjgmACgmpSK dRXzk95XsgMd4kJvuoHq+WY= =CMM9 -----END PGP SIGNATURE-----