A
Alpha Chen
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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-----
Hash: SHA1
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-----