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
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.
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 >
Billie Eilish is Apple Music’s Artist of the Year for 2024. Learn more >
I would like to get help deleting duplicated songs, I do not know how they got their in the first place.
Windows 7
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.
I am running it against a playlist. I imported these songs onto my wife's laptop and then "separated" my songs from hers. I can try it against the main "Music" library though.
Just did ... and it worked with no errors 🙂
Hi turingtest2,
I just read this entire thread and am amazed with your dedication to helping strangers fix this problem. Sincere thanks!
Now I apologize if this is a stupid question, or if it has already been answered, but how exactly do you run the DeDuper script? I downloaded it and tried to open it with iTunes (already having switched to displaying exact duplicates and highlighting all the songs) but I didn't see anything happen. In another post you mentioned that a progress bar may show up, though I didn't get one.
Am I attempting to run the script properly? The method I used felt a bit too simple. While I never got an "iTunes can't open this file" type message, I also haven't seen anything happening.
Thanks so much!
Thanks for your quick reply! That is what I initially attempted, but windows didn't know how to open the file. It gave me the "search the web for appropriate program" or "browse" options, so I decided to try to open it with iTunes. I think I guessed wrong. What should I have done when that window popped up?
Thanks again for your help, friend.
One clue (for the poster with the issue) is to look at the "icon" for the script. If it's the generic Windows icon, yes, WSH is likely not installed.
That eHow artice says it should be installed by default too. Hmmm...
I have Windows 7 and it seems like it is installed by default. I had to do a bit of digging on how to enable it, as intially the scripting host didn't have the enable option. This Yahoo Answer post explained how to create it. Unfortunately, iTunes was saved as the default program to open the file. I tried to open the program with regedit (C/Windows/regedit) but it would not open. The error message said "The specified program is not a registry script. You can only import binary registry files from within the registry editor."
turingtest2 wrote:
... This leads me to two ideas that I've been mulling over but I should really find the time to complete. First a script to eliminate repeat entries in a playlist for the same object. Second a reworking of my scripts so that the first job they to is make their own internal deduped list of objects which they then work with to prevent this kind of problem...
tt2
I haven't got around to rewriting all of my existing scripts but I've updated DeDuper so it can cope if running on the contents of a regular playlist that includes the same track entry more than once. The script will now clean this fourth type of duplicate from a regular playlist (a playlist duplicate) instead of generating errors.
I'll probably get around to writing a dedicated playlist cleaner that can tidy all playlists in the library, but DeDuper can do that task one playlist at a time. I also now have a system for making sure other scripts won't behave unexpectedly when working with playlists that contain repeated items.
tt2
Sir,
I have exactly the problems you described, but I am running Itunes on Windows.
I have 0 experience with scripts and similar codes. Therefore, I dont even know how to run your script, even though I got the code.
Could you please assist me?
Much appreciated,
João
Hi, what language is Windows using? I'm not quite sure why the error occurs on that particular line but the ones just preceding it are designed to send duplicate files to the recycle bin. This can't be done directly so involves invoking the Windows Explorer right-click menu. The script is looking for Delete in the list of commands so my guess is things go wrong if that command isn't there.
tt2
joaokessler wrote:
Thanks for replying. The Delete option is on the right click menu yes. Do you think it could have anything related to being windows instead of mac?
No, my scripts are exclusivley for Windows rather than Mac so that shouldn't be an issue.
As to the other error two possibilies come to mind, either the file is locked in some way that prevents the script from removing it, or it gets deleted but in a background process allowing a small window in which it stll appears to exist. Do you get a lot of the errors, or just a few? Have you checked to see if the named files still exist?
tt2
Hi, I've uploaded a minor update which might prevent this error. It is a little tricky to pinpoint since it isn't going wrong for me. Windows always reports folders as being Read-Only even just after you're cleared the Read-Only flag so that won't be relevant. Generally your own account (or everyone) and system need full access to all the files in the iTunes & iTunes Media folders. Offhand I don't actually know which account VBScript uses for file system & shell operations, but I would assume it is the active user.
tt2
What language is Windows set up for?
Line 491:
If File.Verbs.Item(I).Name="&Delete" Then
will need an edit for non-English regions. The & shows the letter that would be underlined when looking at the context menu, i.e. Delete.
tt2
Hi, that sounds like the file might not have download properly. I've inspected the version that was there and can't see or reproduce the error. Either way I've uploaded a slightly updated build which is working fine at my end. Still trying to find time to complete a major upgrade that will detect files on alternate paths to the same folder.
tt2
iTunes 11 has removed the Show Duplicates/Exact Duplicates functions so I've added two new scripts to make playlists of Duplicates and Exact Duplicates to my scripts collection.
If deduping by hand use shift-delete to remove selected tracks from the library as well as the playlist.
The Exact Duplicates script makes a good starting point from which to run my DeDuper script if you don't want to do it by hand. Please take note of the warning to backup your library before deduping.
tt2
When you right-click on a file what word is the equivalent to delete? Google translate offers Verwijder. Assuming the w is underlined in the context menu, like this Verwijder, then the line becomes:
If File.Verbs.Item(I).Name="Ver&wijder" Then
tt2
While 'Verwijderen' is indeed the correct word, the hotkey is none of the letters in it.
http://windows.microsoft.com/nl-BE/windows7/Keyboard-shortcuts states that the hotkey is either the Delete button or Ctrl+D. What should I put in the script?
Thanks by the way.
Edit: it appears i was wrong and it should be 'Ver&wijderen'. The script deleted 108 tracks.
While now i won't get a error message, the script doesn't recognise many of the dupes. Your other script 'Duplicates' and the feature of Itunes (I have yet to download the latest version) do recognise that there are dupes.
how to delete duplicated songs all at one time?