Skip to content

Instantly share code, notes, and snippets.

@Govan
Created September 13, 2009 18:15
Show Gist options
  • Save Govan/186265 to your computer and use it in GitHub Desktop.
Save Govan/186265 to your computer and use it in GitHub Desktop.
set target_folder to POSIX file "/Users/gavin/Desktop/iTunesOut/"
set the_playlist_name to "Music Only"
tell application "iTunes"
set the_playlist to playlist the_playlist_name
repeat with i from 1 to (number of file tracks in the_playlist)
set the_track to file track i of the_playlist
set the_location to (location of the_track)
tell application "Finder"
copy file the_location to folder (target_folder)
end tell
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment