Skip to content

Instantly share code, notes, and snippets.

@ruslanskorb
Created January 13, 2015 13:22
Show Gist options
  • Select an option

  • Save ruslanskorb/a5adf0866c18e3cf77af to your computer and use it in GitHub Desktop.

Select an option

Save ruslanskorb/a5adf0866c18e3cf77af to your computer and use it in GitHub Desktop.
Script to convert caf files into mp3 files.
#!/bin/zsh
currentPath=${PWD}
for i in **/*.caf; do
n="${currentPath}/$i";
afconvert -f AIFF -d BEI16 $n;
#rm -fv $n;
lame ${n%.caf}.aiff ${n%.caf}.mp3;
rm -fv ${n%.caf}.aiff;
done
#--rm3mix -q0 --id3v2-only --t "" -ta ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment