How To

How to: Turn iTunes podcasts into normal music files

Cyril Roger

Cyril Roger

  • Updated:

iTunes podcastThis trick is a little advanced and requires a bit of patience from you, however if you want to have all your podcasts saved as normal music files in your iTunes, it’s well worth doing. Although the majority of podcast episodes I download are removed after one playback, I can think of quite a few excellent ones that I’ve wanted to keep for good and listen to again. That’s where this little iTunes hacking trick comes in handy. Those of you familiar with AppleScripts should find this pretty straightforward.

Make sure you have Developer Tools installed. Then download fixid3tag. Open up your Terminal and type gcc fixid3tag.c -o fixid3tag then save the fixid3tag binary somewhere where you won’t erase or lose it. Next copy the following script into ~/Library » iTunes » Scripts:

tell application "Finder"
--This is where you put the path to the compiled fixid3tag
set FixerLocation to "~/Documents/fixid3tag"
--This is the path to your temporary folder
set FixedFolder to (folder "Fixed" in desktop) as alias
end tell

tell application "iTunes"
set trackList to the selection of window 1
repeat with theTrack in trackList
set theTrackName to ((the location of theTrack))
do shell script FixerLocation & " " & quoted form of POSIX path of theTrackName
do shell script "cp " & quoted form of POSIX path of theTrackName & " " & quoted form of POSIX path of FixedFolder
delete theTrack
do shell script "rm " & quoted form of POSIX path of theTrackName
end repeat
end tell

--add fixed files to iTunes
tell application "Finder"
set theseFiles to (files of folder FixedFolder as alias list)
end tell
tell application "iTunes" to add theseFiles
on error err
end try

--delete converted temp files
tell application "Finder"
delete every item of folder FixedFolder
end tell

All this will strip the podcast of its ID3 tag, delete the episode and add it automatically to your iTunes library.

[Via: Mac OS X Hints]

Cyril Roger

Cyril Roger

Latest from Cyril Roger