add a file to itunes

this really shouldnt be that hard. how do i add a file to itunes if i have the path to it. in applescript of course.

Hi fiftyfour,

Here an example where a reference to the file is chosen by the user and added to the library playlist.


set file_reference to choose file
tell application "iTunes"
	add {file_reference} to first library playlist
end tell

Note that you can add a list of files if you have one.

gl,

thanks, works great!