A simple approach to test use of shell script.
cdda2wav is called many times so rather than edit the source files do
the following.
1. rename the current /usr/local/bin/cdda2wav to
/usr/local/bin/cdda2wavreal. Check that it still runs with new name.
(I have assumed cdda2wav is in /usr/local/bin )
2. Copy code below into a file called cdda2wav in Plugins/CDplayer/Bin.
Make it executable.
3. Edit the script file to make the diskutil command run on your
system.
4. Test script with the same params as previous runs of cdda2wav.
There should be no difference in output.
5. If all OK - try with CDplayer plugin with SC. If SC is run from
Terminal - when script is run the echo message will be displayed.
Code:
--------------------
#!/bin/sh
app=cdda2wavreal
if [ -x /usr/local/bin/$app ] ; then
app=/usr/local/bin/$app
fi
# Next line is only a guess - needs to be edited but redirection of stdout
(1) is essential
echo "cdda2wav script running " 1>&2
diskutil unmount /dev/disk1 1>&2
"$app" $*
--------------------
--
bpa
------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=42106
_______________________________________________
discuss mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/discuss