-
All replies
-
Helpful answers
-
Aug 22, 2012 8:29 AM in response to usermcuserby turingtest2,Perhaps WSH isn't installed. See http://www.ehow.co.uk/how_7432762_install-windows-script-host.html.
tt2
-
Aug 22, 2012 10:47 AM in response to turingtest2by HallStevenson,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...
-
Aug 22, 2012 9:11 PM in response to turingtest2by usermcuser,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."
-
-
Aug 24, 2012 8:44 PM in response to turingtest2by usermcuser,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.
-
Sep 5, 2012 12:58 PM in response to turingtest2by 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
-
Oct 14, 2012 8:01 AM in response to turingtest2by joaokessler,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
-
Oct 14, 2012 8:17 AM in response to joaokesslerby turingtest2,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
-
Oct 14, 2012 1:06 PM in response to turingtest2by joaokessler,Its working! Great script Turing, congratulations!
-
-
-
Nov 3, 2012 4:52 PM in response to joaokesslerby turingtest2,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
-
Nov 4, 2012 6:41 AM in response to turingtest2by joaokessler,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?
-
-
Nov 4, 2012 8:22 AM in response to joaokesslerby turingtest2,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


