If you're using a Mac, and have FLAC installed (from
http://flac.sourceforge.net/ ) you can use the following OS X Service
to create a playlist in the clipboard (which can then be pasted into an
m3u file and copied to the Touch USB)
With this, you can select FLAC files on the Touch, right-click, select
the Service and create a playlist in the clipboard:
Open Automator and select Service from the main screen. Set the
Service Receives Selected pop-up menu to Files or Folders, and set
the in pop-up to Finder. Drag Run Shell Script from the Utilities
section of the actions library into the workflow area. Set Pass Input
to As Arguments. Replace the sample code in the input area with this:
Code:
--------------------
count=0
echo -e "#CURTRACK 0\n#EXTM3U" > $TMPDIR/playlist.tmp
for f in "$@"
do
if [ "${f##*.}" = "flac" -o "${f##*.}" = "FLAC" ] ; then
TrackInfo=$(/usr/local/bin/metaflac --show-total-samples
--show-sample-rate --show-tag=TITLE "$f")
TrackSample=${TrackInfo%%TITLE=*}
let TrackSeconds=${TrackSample/[[:space:]]/\/}
TrackTitle=${TrackInfo##*TITLE=}
Track=${f/\/Volumes\/media-sda1/\/media\/sda1}
echo -e "#EXTINF:$TrackSeconds,${TrackTitle#*=}\n$Track" >>
$TMPDIR/playlist.tmp
count=$(expr $count + 1)
fi
done
if [ $count -gt 0 ]; then
pbcopy < $TMPDIR/playlist.tmp
fi
rm $TMPDIR/playlist.tmp
--------------------
--
Tony T
------------------------------------------------------------------------
Tony T's Profile: http://forums.slimdevices.com/member.php?userid=34544
View this thread: http://forums.slimdevices.com/showthread.php?t=78779
_______________________________________________
Touch mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/touch