property myPlaylist : "xyz"
on adding folder items to my_folder after receiving the_files
repeat with i from 1 to number of items in the_files
tell application "iTunes"
launch
try
set this_file to (item i of the_files)
set this_file to last track of playlist myPlaylist
end try
end tell
end repeat
end adding folder items to
I have attached this script as folder action to the folder “xyz”. I want to add (when new files are added) the files of folder “xyz” to my playlist “xyz”. Can someone help me?