Converting FLAC to Apple Lossless without the hassle
- when I can choose between different audio formats to download, I prefer lossless to lossy (duh).
- the de-facto standard for lossless audio is FLAC.
- I am an inhabitant of Apple's iTunes/iPod/iPhone Garden Eden – and of course Apple refuses FLAC and instead cooked up their own lossless format, ALAC, which resides in
So every time I get hold of music in FLAC, I need to convert it to ALAC before I can throw it into iTunes. On average, UIs for small apps like these are horrible, so I'd prefer to have a Bash-script available for that.
First of all, the code is from an answer at AVP Stack Overflow.
I recommend sporting a
scripts directory in the home folder, which is added to the [PATH](http://en.wikipedia.org/wiki/PATH_(variable)). We want to have a script there called
flac2alac.sh which does the conversion whereever we have some FLAC files.
Then one edits that file in a text editor of choice and puts inside:
What does this code do?
This will simply cycle through all the .flac files sitting in the current directory and convert them all to .alac until they're all done.
Lets say you have a folder called
100-Million-Bon-Jovi-Fans-cant-be-wrong filled all the bestest music in flac files. Do
- is it executable?
- is it in
~/scriptspart of the
- did you open a fresh terminal window after editing