Although there are a few hints that relate to this, I think I've streamlined the process for taking a podcast episode (such as from the excellent KEXP Song of the Day podcast) and automatically stripping the podcast ID3 tag, deleting the podcast episode, and re-adding the track to your iTunes Music Library as a regular MP3 file.

First, you must download fixid3tag. Then in Terminal, type gcc fixid3tag.c -o fixid3tag (you must have the Developer Tools installed). Put the fixid3tag binary someplace; I put mine in ~/Documents.

Next, take the belwo AppleScript and put it in ~/Library » iTunes » Scripts. The first couple of lines are used to specify two important file locations -- the location of the fixid3tag binary, and the location of your temporary folder (I used ~/Desktop/Fixed.)

How do I place the folder 'fixed' somewhere else then the Desktop? I tried modifying this line as follows, but it does not work?
set FixedFolder to (folder "Fixed" in "/Users/myusername/Music") as alias

Is there a good reason for doing this? It seems that the only difference is that you don't have the CLEAN box next to songs in playlists. On the other hand, you would lose any information in the description box.

Does this work with chapters?
Authored by: hamarkus on May 21, '08 12:14:12PM

After sorting out the paths, all it does now for me is to re-add the podcast, now again checked (I unchecked it before) and with the un-played status.
I tried it on a podcast with chapters, btw.
It would be cool if it only added the currently selected chapter (with its album art and description as the new title). Currently this probably could only work by setting the start and stop time. AFAIK, only Rogue Amoeba Fission can split AAC files, for MP3 files open source software exists however.

It works, but it would be nice to parse some of the common fields from KEXP and KCRW to fill in the Artist, Song, and Album correctly. Ah well, it is nice not to have to worry that listening to a song will cause it to disappear (the Autodelete setting keeps getting turned back on).

I think I found something (Track Parser) that will move things around for me.

I notice this line in the script:delete every item of folder FixedFolder
That's not very good! I want to use ~/Library/Caches/TemporaryItems/ but it deletes everything there. I tried changing it to:delete theseFiles
but that also deletes everything...I see why, now. Fixing this is beyond my time available + skill available.

Essentially the script assumes that it has a folder dedicated to its own use, when it should keep track of, well, tracks, or better yet, make and destroy its own temp folder within the temp folder. I think.

The script as originally written will delete everything in whatever folder is chosen. Which could be bad. Here is a briefly tested fix that uses a folder in the user's Temporary Items folder. I only added the if/else/end.

tell application "Finder"
--This is where you put the path to the compiled fixid3tag
set FixerLocation to "/usr/local/bin/fixid3tag"
--This is the path to your temporary folder
-- Quick hack to stop stepping on all items in whatever folder was chosen, sheesh, what if someone picked ~/Documents?
if not (exists folder "podcast2music" of folder (path to temporary items from user domain)) then
set FixedFolder to (make new folder at (path to temporary items from user domain) with properties {name:"podcast2music"}) as string
else
set FixedFolder to folder "podcast2music" of folder (path to temporary items from user domain) as string
end if
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
try
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