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.

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

Jun 5, 2013 9:51 AM in response to VraelSix

Hi, yes thanks. I'm just reviewing the script now and while I still can't see for certain why it isn't working I can see scope for checking that the current line 350 has assigned a valid track object. If it doesn't that might explain the failure on line 375. Of course that doesn't explain how I've managed to get an invalid object reference stored in the list of things to delete earlier in the script, assuming that is what is going on when it fails. 😕


tt2

Jun 5, 2013 10:16 AM in response to turingtest2

It works 90% of the time with sample sizes less than 1500, so is still incredibly helpful.


I have stumbled accross another bug, however I'm not sure if it is intentional. If the genre differs between two songs, it won't identify them as duplicates.


I have two copies of Employment by the Kasier Chiefs, same song names, lengths durations etc, only differences are that one is list as "Alternative" and the other as "Rock", and one is in AAC and other other in MP3.


Is this something that the script should pick up on?

Jun 5, 2013 11:03 AM in response to VraelSix

The script is neutral as to genre. Having the same tracks in two formats should mean they appear as "alternate" dupes, presumably one being better quality (for which the script uses larger in the hope it means the same thing) than the other. There might be some tiny difference in the tags that isn't immediately apparent that means they don't get seen as being the same.


Logical dupes are recognized by having the same file path.

Physical dupes are recognized by having the same combined properties for Artist, Album, DiscNumber, TrackNumber, Name and Size, ignoring case.

Alternate dupes are as physical dupes but without the matching size criteria.


"Kasier Chiefs" is in fact spelt "Kaiser Chiefs", perhaps you have one correct spelling and one mispelt.


tt2

Jul 18, 2013 12:46 PM in response to turingtest2

Hi, Great work, thank you. I am using windows seven in french and the text I see when I right-click a file with Windows Explorer, is the text "Supprimer", with no underline at all nowhere. When I change your script on line 491 from "&Delete" to "Supprimer", it does not work and still says it cannot delete the file. Any idea ? (I have 15000 duplicates... lot's of wait and click and the duplicate file is still there with a "2" in the file name).


How could I find another way to get the right string to substitute for "&Delete"

Thanks a lot and best regards.

Aug 3, 2013 3:42 PM in response to turingtest2

Hey tt2, your vbscripts sound PERFECT for what I'm needing.

I currently have almost a TB of stuff in my iTunes and have slightly

different versions stored on various hard drives which I'm working on

merging into a single iTunes library. It looks like a few of your

VBScripts are EXACTLY what I need to remove all the many, MANY

duplicates after each merge and I really, REALLY need them but, alas,

I use a mac. I am not very skilled with computers and have zero

programming skill . . . is there any way that you can convert these

few scripts to Applescript or perhaps tell me if there's some sort of

automatic converter online that will do it for me? The scripts that I

think will be particularly useful are FindTracks, ExactDuplicates, and

DeDuper. You may have some others that I'm not aware of that would

help with this process too. Anyway, I really hope you have some

suggestions that might help me.


Many Thanks!

~ evenstill2

Aug 3, 2013 4:43 PM in response to evenstill2

evenstill2 wrote:


Hey tt2, your vbscripts sound PERFECT for what I'm needing.

I currently have almost a TB of stuff in my iTunes and have slightly

different versions stored on various hard drives which I'm working on

merging into a single iTunes library. It looks like a few of your

VBScripts are EXACTLY what I need to remove all the many, MANY

duplicates after each merge and I really, REALLY need them but, alas,

I use a mac. I am not very skilled with computers and have zero

programming skill . . . is there any way that you can convert these

few scripts to Applescript or perhaps tell me if there's some sort of

automatic converter online that will do it for me?

You can get similar AppleScripts for iTunes at Dougscripts.com

Aug 3, 2013 5:25 PM in response to evenstill2

What Chris said. I've only just got hold of a Mac and have yet to get to grips with AppleScript but many of my scripts will have existing parallels. Those that don't may not be easy to replicate as I believe there are differences between the iTunes methods & properties and general programming tools that are available within AppleScript compared to vbScript.


tt2

Sep 19, 2013 11:34 AM in response to brithonew

There's something wrong with the system that uses Internet Explorer to create a progess bar. There's probably a way to fix/register the IE automation object but I don't have a link to hand just now.


You can find add edit the line near the beginning that reads:


Prog=True ' Display progress bar


and change it to:


Prog=False ' Display progress bar


which should stop the error. You'll just have to be patient during the scanning phase because there won't be any visible clue that it is working.


tt2

Oct 12, 2013 6:37 PM in response to viaTech

Hi


Question no. 1: I'm trying to replicate the "Display Exact Dupliates" option under ITunes 11.1 (126 - 64 bit) and the OPTION key and then click File Menu doesn't offer me any seeming way to select "Display Exact Duplicates".


All I get in the File menu is the menu that one gets whether or not one presses the OPTION key previous to clicking the File.


I somehow found most of my files were put in the trash (it appears!) and I added them again, and now I noticed that I have what appear to be duplicates or triplicates of many songs and I'm trying to find a quick way to delete without having to select each, as I appear to have to do when I use the method: View > Show Duplicate Items.


Question no. 2: Further more, with the above View > Show Duplicate Items option, I'm not sure if all the titles (songs) listed include both the original and the duplicate (or triplicate as the case may be) or if those titles displayed are solely duplicates (or triplicates, etc)?


Thanks for any insights any of you can provide!

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.