Is there any way to get a command to play a sound when it is complete?
I can't think of any shell script for just playing a sound, but I'm looking for something like:
echo " Aprox. page #$(( (TM_LINE_NUMBER+31) / 32 )) " play "$TM_BUNDLE_SUPPORT/harp.wav"
I use the shell command "say". You can give descriptive messages that way. i.e. say "holy crap, it's finally done". say "one of these days you've got to get me one of those Intel chips".
Brett
On Dec 17, 2006, at 12:54 AM, Oliver Taylor wrote:
Is there any way to get a command to play a sound when it is complete?
I can't think of any shell script for just playing a sound, but I'm looking for something like:
echo " Aprox. page #$(( (TM_LINE_NUMBER+31) / 32 )) " play "$TM_BUNDLE_SUPPORT/harp.wav" ______________________________________________________________________ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Brett Terpstra : Art Director Circle Six Design, Inc. 111 Riverfront Dr, Suite 204 .................................................. p: 507.459.4398 877.858.4332 f: 1.866.540.3063 e: brett@circlesixdesign.com http://www.circlesixdesign.com ..................................................
On 12/17/06, Oliver Taylor oliver@ollieman.net wrote:
Is there any way to get a command to play a sound when it is complete?
IIRC, the XCode bundle plays a sound when compilation is complete.
Check the commands there :)
Good luck!
-- Ale Muñoz http://sofanaranja.com http://bomberstudios.com
On Dec 17, 2006, at 10:37 AM, James Edward Gray II wrote:
On Dec 17, 2006, at 12:54 AM, Oliver Taylor wrote:
Is there any way to get a command to play a sound when it is complete?
Well, you can play the system sound with:
osascript -e beep
or for more variety one of:
"$TM_SUPPORT_PATH/bin/play" "$TM_SUPPORT_PATH/Sounds/Whistle.wav" "$TM_SUPPORT_PATH/bin/play" "$TM_SUPPORT_PATH/Sounds/Harp.wav"
or any of the sounds in /System/Library/Sounds
Gerd