Unable to run iTunes based VBS files

I'm guessing this is something to do with Vista because it works fine on my laptop, but basically I'm trying to run a VBS script which clears out duplicates from iTunes. The VBS file runs fine on my laptop which is running XP, but doesn't run on my desktop running Vista x64 Ultimate (only doing so because it exceeds the max spec for XP Pro).


When I try and run the script I get the following:

C:\Users\Enverex\Desktop>cscript Remove Dup_iTunesTracks.vbs
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.

C:\Users\Enverex\Desktop\Remove Dup_iTunesTracks.vbs(32, 1) Microsoft VBScript
runtime error: ActiveX component can't create object: 'iTunes.Application'


(this forums lack of a "code" paste option is wrecking the output a little but you should get the idea).
I've tried reinstalling iTunes and I've tried installing the x86 version of iTunes, no change. It does this for any iTunes VBS script, not just this one (and as I said they work fine on my laptop). Tried using iTunes 7 instead which also had no effect. The "register the vbs dll file" also has no effect (also that's only a fix for the issue of iTunes not installing in the first place). User is admin and can do anything else on the machine, it's just VBS files for iTunes that don't work.

So any ideas? I really need to be able to sort this out because I can't sync my iPod till It's done :/

Self-Built Custom, Windows Vista

Posted on Oct 12, 2008 2:41 AM

Reply
8 replies

Oct 12, 2008 3:41 AM in response to Enverex

The teridon scripts don't use visual basic so they may run.

I think you said that you tried registering vbs?

As in running the cmd wind as administrator and typing: regsvr32 vbscript.dll

Do you have visual basic scripting installed? I am afraid I only have an XP link for that at Microsoft. So I don't think I can help much with getting it going if that's the problem. Mostly vbs problems in Vista have been fixed by reregistering.

I wonder if there is a problem with the iTunes COM interface. That would stop any iTunes script working including the Teridon ones.

Oct 12, 2008 4:09 AM in response to polydorus

Tried the registering thing ages ago, it claims to have registered fine but no change.

I tried the scripts on that site but only the VBS ones (as it's VBS I'm having an issue with). I just tried his EXE version, ran the program and it gave me a list of all his scripts, I tried 2 different ones, they opened a command prompt window (with nothing written in them) and then disappeared after about 2 seconds silently.

I assume I have VBS installed, I thought it was a prerequisite to install iTunes but I'm not sure what else to try, as you mentioned it only seems to be for 2k, XP and 2k3.

Oct 12, 2008 7:39 AM in response to Enverex

It sounds as though you may have a generic problem with the iTunes COM interface and not visual basic if neither the Teridon scripts or a java script worked.

Did you try running the java script one with cscript from the cmd window? THat is probably the basic way of running a script to it might be a good test to try.

The dead track removal script from the COM SDK is a nice simple one to try.

Unfortunately if there is an issue with the COM interface I can't help with that and I would be interested in how to do it if you manage to sort it out.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Unable to run iTunes based VBS files

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.