#!/bin/sh echo "checking for base directory..." if [ -d ~/Music/rips ] ; then echo "base directory exists" ; else mkdir ~/Music/rips ; echo "base directory created" ; fi echo "checking for complete directory..." if [ -d ~/Music/rips/complete ] ; then echo "complete directory exists" ; else mkdir ~/Music/rips/complete ; echo "complete directory created" ; fi echo "checking for incomplete directory..." if [ -d ~/Music/rips/incomplete ] ; then echo "incomplete directory exists" ; else mkdir ~/Music/rips/incomplete ; echo "incomplete directory created" ; fi echo "checking for streamripper..." if [ `which streamripper` ]; then echo "streamripper is installed :)" ; else echo "streamripper isn't installed :(" ; echo "You can find it at http://streamripper.sourceforge.net" fi streamripper http://128.208.34.80:8002 -s -d ~/Music/rips -l 10 mv ~/Music/rips/incomplete/* ~/Music/rips/complete/`date | sed 's/:/-/g' | sed 's/ /-/g'`.mp3 osascript <