Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Auto-add MP3s in a folder to an iTunes playlist' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Auto-add MP3s in a folder to an iTunes playlist
Authored by: hypert on Mar 05, '07 04:07:16PM
I've used an AppleScript attached to a Folder Action to accomplish this too:

property extension_list : {"mp3", "m4a"}

on adding folder items to my_folder after receiving the_files
	repeat with i from 1 to number of items in the_files
		set this_item to (item i of the_files)
		set the item_info to info for this_item
		if the name extension of the item_info is in the extension_list then
			--display dialog "Adding " & the name of item_info & " to iTunes"
			tell application "iTunes"
				try
					set this_track to add this_item to playlist "Library" of source "Library"
					duplicate this_track to user playlist " New"
				end try
			end tell
		end if
	end repeat
end adding folder items to


[ Reply to This | # ]