Applescript to delete track from itunes
Hi,
This seems like a easy question but I can't get it to work. I needed to delete tracks on iTunes with applescript. But something like the following script gives me the error that itunes does not understand the delete message.
tell application "iTunes"
set myTrack to track "deleteme" in the playlist "Audiobooks"
delete myTrack
end tell
The error reads: iTunes got an error: file track id 13543 of user playlist id 9599 of source id 41 doesn't understand the delete message.
Ideas? I'm using the latest version of iTunes.
Cheers
This seems like a easy question but I can't get it to work. I needed to delete tracks on iTunes with applescript. But something like the following script gives me the error that itunes does not understand the delete message.
tell application "iTunes"
set myTrack to track "deleteme" in the playlist "Audiobooks"
delete myTrack
end tell
The error reads: iTunes got an error: file track id 13543 of user playlist id 9599 of source id 41 doesn't understand the delete message.
Ideas? I'm using the latest version of iTunes.
Cheers
Macbook Pro, Mac OS X (10.4.6)