Skip navigation

Delete Track from iTunes Library if in User Playlist

343 Views 1 Reply Latest reply: Sep 20, 2012 5:55 AM by Bernard Harte RSS
Bernard Harte Level 4 Level 4 (3,025 points)
Currently Being Moderated
Sep 20, 2012 5:41 AM

Hello

 

I want to delete [music] tracks from the main iTunes [10.7] library if they are in a user playlist.

 

I saw (on dougscripts.com) an approach where the database id was obtained from the track in the playlist and this was then used to delete from the main library.  However, it does not seem to work:

 

                    delete (some track of thePlaylist whose database ID is (get database ID of deleteTrack))

 

  returns error -1708 "... doesn't understand the delete message"

 

I think this is to do with a change to the way in which the main library is referenced, but if anyone can shed some light it would be much appreciated.

 

Thanks.

MacBook Pro, OS X Mountain Lion (10.8.2), 13" Late 2011 8GB RAM

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.