Skip navigation

how to delete duplicated songs all at one time?

273792 Views 308 Replies Latest reply: Apr 13, 2014 2:50 PM by turingtest2 RSS Branched to a new discussion.
  • turingtest2 Level 8 Level 8 (43,860 points)
  • HallStevenson Calculating status...
    Currently Being Moderated
    Aug 22, 2012 10:47 AM (in response to turingtest2)

    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...

  • usermcuser Calculating status...
    Currently Being Moderated
    Aug 22, 2012 9:11 PM (in response to turingtest2)

    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 Level 8 Level 8 (43,860 points)
    Currently Being Moderated
    Aug 22, 2012 11:50 PM (in response to usermcuser)

    .vbs fles should be opened with the Microsoft (R) Windows Based Script Host.

     

    ScriptHost.png

     

    You should be able to right-click on the file and choose the appropriate option, or use the Folder Options dialog to correct the action for the file type.

     

    tt2

    Various PCs, iTunes 10.6.1.7, Windows XP Pro, iPad 2,iPhone3GS,iPod Classic+Nano
  • usermcuser Level 1 Level 1 (0 points)
    Currently Being Moderated
    Aug 24, 2012 8:44 PM (in response to turingtest2)

    That worked!  Thanks so much.  I just ran the program and it is deleted the dreaded duplicates as I type.  Thanks so much, anonymous wizard from London!  You're the hero this city needs.

  • turingtest2 Level 8 Level 8 (43,860 points)
    Currently Being Moderated
    Sep 5, 2012 12:58 PM (in response to turingtest2)

    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

  • joaokessler Calculating status...
    Currently Being Moderated
    Oct 14, 2012 8:01 AM (in response to turingtest2)

    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

  • turingtest2 Level 8 Level 8 (43,860 points)
    Currently Being Moderated
    Oct 14, 2012 8:17 AM (in response to joaokessler)

    The general method of use is to download the script to a folder of your choice, e.g. your Desktop, Downloads folder or create a folder at ...\iTunes\Scripts. Select a playlist or highlight some tracks in iTunes and then double-click on the script to execute it. If no specific tracks are selected the script will try to work with all tracks in the current playlist. Some scripts offer a choice of track by track confirmation of changes or fully automatic processing of the selection. Many of the scripts can optionally display a progress bar while running.

     

    You are strongly advised to backup your entire library, or at the very least the iTunes Library.itl file, before use. Test the behaviour of your chosen script on a small group of files first to make sure it does what you want before applying it to large numbers of files.

     

    Most builds of Windows will execute *.vbs scripts when you double-click them. If that doesn't happen then you might need to visit the Add/Remove Programs or Programs & Features control panel to enable the Windows Scripting Host. I can track down details if you have issues.

     

    tt2

  • joaokessler Level 1 Level 1 (0 points)
    Currently Being Moderated
    Oct 14, 2012 1:06 PM (in response to turingtest2)

    Its working! Great script Turing, congratulations!

  • turingtest2 Level 8 Level 8 (43,860 points)
    Currently Being Moderated
    Oct 14, 2012 1:48 PM (in response to joaokessler)

    You're welcome.

     

    tt2

  • joaokessler Level 1 Level 1 (0 points)

    Turing, I am having the following error when using DeDuper. Do you have any ideas of solutions to this? Thanks in advance.

     

     

    DeDuper.png

  • turingtest2 Level 8 Level 8 (43,860 points)

    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 Level 1 Level 1 (0 points)

    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?

  • joaokessler Level 1 Level 1 (0 points)

    Now I am getting the following error too:

     

     

    DDUPER2.png

  • turingtest2 Level 8 Level 8 (43,860 points)

    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

1 ... 6 7 8 9 10 ... 21 Previous Next

Actions

More Like This

  • Retrieving data ...

Bookmarked By (7)

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.