Skip to content

Instantly share code, notes, and snippets.

@jhorology
jhorology / gist:c195d54d509e9fff0293
Created December 31, 2014 03:02
Bulk convert Apple Loops to m4a without re-sampling.
#!/bin/sh
IFS=$'\n'
APPLE_LOOPS='/Library/Audio/Apple Loops'
cd `dirname $0`
echo "" > convert.log
for file in $(find $APPLE_LOOPS -print -type f -name *.caf)
do
newfile=`echo $file | sed "s|^$APPLE_LOOPS/||"`