Skip to content

Instantly share code, notes, and snippets.

@timvw
Created November 13, 2012 22:42
Show Gist options
  • Save timvw/4068934 to your computer and use it in GitHub Desktop.
Save timvw/4068934 to your computer and use it in GitHub Desktop.
Use iTunes to convert all non-mp3 podcasts to mp3 in iTunes
tell application "iTunes"
set podcast_playlist to some playlist whose special kind is Podcasts
set podcasts_to_convert to file tracks of podcast_playlist
repeat with podcast_to_convert in podcasts_to_convert
set podcast_location to location of podcast_to_convert
if not podcast_location is missing value then
set podcast_location to "" & podcast_location
if podcast_location does not contain "mp3" then
convert podcast_to_convert
-- display dialog podcast_location
end if
end if
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment