You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

📰 Newsroom Update

Billie Eilish is Apple Music’s Artist of the Year for 2024. Learn more >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

how to delete duplicated songs all at one time?

I would like to get help deleting duplicated songs, I do not know how they got their in the first place.

Windows 7

Posted on Aug 28, 2011 10:29 AM

Reply
Question marked as Top-ranking reply

Posted on Apr 6, 2017 10:14 PM

Some how I got duplicates of my library on iTunes and to get rid of all the new duplicates I went to the library I looked for the date the new duplicate songs were added to the library then I went to columns and where you see Artist, song,

bit rate, time, etc and added 'date added' once that's done click on the box enclosing 'date added' and you will see all songs added by date. Proceed to the last one of the songs with that date press command to highlight it then scroll all the way to the first song and press 'shift' to highlight all of the songs added on that date then simply press delete.

you will be asked if you want to delete these songs...That's it.

483 replies

Nov 6, 2013 8:39 AM in response to turingtest2

turingtest2 wrote:


Oh, I see. It must be some feature of dbPoweramp. I've never seen a dialog box like that. It certainly isn't generated directly by my script.


tt2


Yes looks like that alas. I have tried changing the settings in the default program panel for iTunes but that doesn't work. Other than uninstall dBpoweramp I think I'm stuck with it.

Nov 10, 2013 3:07 PM in response to AuggieDoggies

Quick update 🙂. I couldn't use the link I had previously used to retrieve my registration details until I saw a link on their webpage which allowed 'registration retrieval' ! That's a new one to me so I'll try that. I also noticed they have a 'Perfect Tunes' software download which also removes duplicates. So, failing using your script I may try that...it is £23 though 😟.

Nov 18, 2013 8:03 AM in response to Perry.Bryant

Hmm, not sure what is happening there. I'm running 32 bit Windows 7 here and the script works fine if I create some duplicates for cleaning. If the file system object or shell objects hadn't been created there ought to have been problems earlier. The line in question reads:


Set Folder=SH.NameSpace(FolderName)


So at a guess there is something wrong with the value of FolderName such that nothing sensible comes back from the call SH.NameSpace(FolderName), but offhand I've no idea what might be the problem.


If the problem is repeatable then you could try inserting an extra line before the problem statement and using:


MsgBox FolderName


to display the value that causes the failure.


tt2

Dec 14, 2013 5:26 AM in response to jpl2407

Hmm. the script is designed to use the recycle bin so that in the unlikely event that it deletes more than intended there is a chance of recovering the deleted tracks. There is a part of the code that suppresses the normal warning before sending to the recycle bin, if enabled, then restores the user's preference once the file has been deleted. I don't have time to test it just now but I'm guessing that if the recycle bin is disabled that I'd have to change different registry keys to suppress the confirmation box.


I can probably cook up a tweak that either enables the recycle bin or allows unconfirmed deletions when the bin is disabled, but it won't be able to get to it today.


If you enable the recycle bin I think you'll find the script works as intended. Please let me know either way.


tt2

Dec 14, 2013 9:00 AM in response to jpl2407

Windows 8 was my initial thought when I saw the screenshot, but I know that I haven't tested the script with the recycle bin disabled completely. Not really played with Windows 8 much, but recently installed it in boot camp on a Mac mini for my son. I'll have to book some time on it... I also have a vague recollection that some AV software caused another user to get additional confirmation boxes when deleting files which tripped things up for them, however the very blocky graphic hints it might Windows rather than anything else asking the question.


tt2

Dec 26, 2013 6:50 AM in response to Havaren

Hmm, someone else had this issue but we didn't get to the bottom of it before he managed to workaround it and clear up the dupes so I wan't able to work out the cause. Make sure you don't have cloud items visible, Edit > Preferences > Store untick Show iTunes in the coud purchases. And work with either the main Music source or a smart playlist. Regular playlists can have playlist dupes (same iTunes object repeated in the list) which the current build of the script doesn't identify properly. It may help to break down the task by, for example, selecting the dupes for artists beginning with A, then B etc.


tt2

Dec 28, 2013 5:22 AM in response to Havaren

Weird. I've just downloaded the live version of the script from my site, just to make sure I'm looking at the same thing as you (Version 1.0.1.8 - September 6th 2013), and tested it on a sample of 12 tracks that I created physical, alternate and logical dupes of. The script took the 72 tracks back down to 12 as designed without error.


The Object T is declared on line 350:


Set T=ObjectFromID(ID)


For test purposes I suppose you could change this to:


Set T=ObjectFromID(ID) : MsgBox T.Location,0,Title


just to see if it still fails when it gets to line 375, or now crashes out on line 350.


tt2

how to delete duplicated songs all at one time?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.