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

Mar 14, 2012 10:18 AM in response to turingtest2

Hi tt2 and all,

no i don't appear to have broken files with elxclamation makes at least not in the info colums highlighted my itunes.


i got this repeat message trying the deduper today, and also this separate one too:

line: 415

Char: 5

Error: the track is not modifiable

code: A0040203

source: (null)


line: 1008

Char: 5

Error: object named "internetexporer.appplications".

code: 800704A6

source: WScript.createobject


thanks everyone, are these new issues or already debugged?

Mar 14, 2012 11:18 AM in response to PWWW

The error on line 415 is generated by iTunes and occurs if the SkippedDate value is updated. I can't see a good reason for iTunes to reject this call, even if the track in question were locked or currently playing since the data only goes in iTunes own database. Not ever seen the issue myself. Easiest thing might be to simply comment out that line with a single quote.


The error on line 1008 looks like a security setting is preventing the script from creating a local IE browser object to host the progress bar used by the script. I thought I'd written in some code to detect if IE can't be invoked but it may not be thorough enough. I've only got XP to test on where the script works as expected. This page on IE security zone settings may be useful but I'll have to find time to access and test the script on a Windows 7 system again.


There's a note in my script regarding line 1060 - Causes error if UAC is active - so it looks like I've already determined that if UAC is enabled the script shouldn't attempt to use the progress bar feature. However I recall rewriting the way the progress bar is invoked during the different phases of the script so I probably just need to do some housekeeping there.


tt2

Mar 15, 2012 3:25 AM in response to turingtest2

am i correct to say that the DeDuper didn't delete any copies during my usage since it comes up with an error mesage every time i use it on my exact uplicate list in itunes?

should i try it on smaller sets of of that library to more usefulness?


let me know if there are fixes or additions to the code that i should re-download to use again.


Thank you for all of your help so far, hoping to get this to work and be over/done with it.

Mar 15, 2012 11:49 PM in response to turingtest2

thank you tt2, appreciate your time in responding.

i guess i'm the only one having these issues.

I have my UAC enabled, and i even merged all my music folders, consolidated (while converting to aav files for hours...), and deleted the old folders.


anyhow, tried the deduper again and still have come up with this message:

i got this repeat message trying the deduper today, and also this separate one too:

line: 418

Char: 5

Error: the track is not modifiable

code: A0040203

source: (null)

Mar 16, 2012 1:36 AM in response to PWWW

Try to identify one of the tracks that the script is going to want to update, i.e. one of your sets of exact duplicates. Can you modify say the comment field via Get Info or is the file locked?


Even if the permissions dialog says you have full control there may be files with incorrect permissions within the folder structure. The tip above repairs the permissions for all files within the folder it is applied to.


Alternatively the files could be marked as read-only. Open the properties of the top folder, clear the Read-only checkbox, and apply the change to This folder, subfolders and files.


In the current build line 418 is a comment so that shouldn't cause an error. Can you check the line number please?


tt2

Mar 16, 2012 2:43 AM in response to PWWW

i changed the itunes music folder to be cleared of the read-only function.


i ran deduper again, this time i got to the pop-up screen alerting me to the number of exact and secondary duplicates to delete.


It looks like we have successfully figured out why this program was not working for me.


I really apprecaite your help streamlining my media and helping me through the step-by-step of how to enable my frustrating computer to utilie your great program.


I hope this helps future users to get their files cleared more rapidly and without confusion with these setting parameters needing to be met!


THANK YOU tt2

Apr 2, 2012 7:05 PM in response to RaymondOverman

Hmm, the relevant line from the script is:


Set iTunes=CreateObject("iTunes.Application")


Which is fundemantal to the script doing anything useful. Looking up the error code 800a01ad would suggest that the error occurs when the automation object we want to connect to hasn't been registed properly. A repair install of iTunes might fix it.


tt2

Apr 18, 2012 6:45 AM in response to TheronSimon

The message you have seen simply means you haven't selected any files before starting the script.


Normally I suggest you hold down Shift and click the menu File > Display Exact Duplicates to cut down the number of files to compare, but if you have essentially doubled up all entries there is no point in that step.


Press CTRL-A on your keyboard to select all files before running the script. You will need to repeat the process for each source, Movies, Podcasts, TV Shows etc.


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.