Hi, I have created some applescript, that creates a playlist of all the files I have modified outside of iTunes, part of the reason for doing this is that iTunes then has updated metadata information for these files without having to select 'Get Info' within iTunes. The trouble is that for some reason some (but not most) of the files now appear in iTunes twice both referring to the exactly same physical file.
Can anybody see what is going wrong
thanks Paul
example applescript
tell app "iTunes"
set new_playlist to (make user playlist with properties {name:"newList12/20/08 4:01 PM"})
add(POSIX file "/Users/renaudg/Music/iTunes/iTunes Music/Astral Projection/Another World/09 Still on mars.mp3") to new_playlist
add(POSIX file "/Users/renaudg/Music/iTunes/iTunes Music/U2/October/03 I Threw A Brick Through A Window.mp3") to new_playlist
add(POSIX file "/Users/renaudg/Music/iTunes/iTunes Music/Emilie Simon/Emilie Simon (bonus disc)/01 Desert (english version).mp3") to new_playlist
repeat with nexttrack in (get every track of new_playlist)
refresh nexttrack
end repeat
end tell
Within the iTune sMusic folder it shows Still on Mars twice (wrong) but it only shows 'I Threw A Brick Through A Window.' once (correct), this is reflected in the iTunes xml file
where the value of Location is identical for the two entries. I tried to post the relevent part of Xml but this causes my forum post to fail with error 'New members are not permitted to post images or links) , but I can make it available.
Can anybody see what is going wrong
thanks Paul
example applescript
tell app "iTunes"
set new_playlist to (make user playlist with properties {name:"newList12/20/08 4:01 PM"})
add(POSIX file "/Users/renaudg/Music/iTunes/iTunes Music/Astral Projection/Another World/09 Still on mars.mp3") to new_playlist
add(POSIX file "/Users/renaudg/Music/iTunes/iTunes Music/U2/October/03 I Threw A Brick Through A Window.mp3") to new_playlist
add(POSIX file "/Users/renaudg/Music/iTunes/iTunes Music/Emilie Simon/Emilie Simon (bonus disc)/01 Desert (english version).mp3") to new_playlist
repeat with nexttrack in (get every track of new_playlist)
refresh nexttrack
end repeat
end tell
Within the iTune sMusic folder it shows Still on Mars twice (wrong) but it only shows 'I Threw A Brick Through A Window.' once (correct), this is reflected in the iTunes xml file
where the value of Location is identical for the two entries. I tried to post the relevent part of Xml but this causes my forum post to fail with error 'New members are not permitted to post images or links) , but I can make it available.