[HELP] iTunes Song List

I'd like to ask if there is an easier way of deleting redundant songs in the song list?

#301304

you mean like Edit>Show Duplicate Songs?

#301306

i mean deleting misplaced songs or songs that don't exist anymore... instead of right click>clear

#301308

I guess just control click all of the nonexistent songs and right click > clear them all at once. I don't think there is a way to mass get rid of them. Next time just use iTunes to delete your songs instead of from the folders and you won't have this problem.

#301309

or use iTunes Art Importer (the beta version)...I don't have a link but Google should help, anyways I'm off to bed, gnite world.

#301310

Hre is a script for this.

#301347

Thanks localhost, gonna try it out, might be really useful

#301366

Thanks a lot localhost!

#301376

Ooh, this is very nice localhost...thanks!

-NC

#301433

that file is the bomb localhost

cheers!

#307104

sorry my bad

#307106

works like a dream, i wish i wasnt poor to make a donation!

Thanks a lot

ps:lottery soon so cross fingers

#312912

does that script still work with iTunes 5? ...the link seems to be broken at the moment

#316729

does that script still work with iTunes 5? ...the link seems to be broken at the moment

link ? the file is attached to the forums :s

#316733

yeah nevermind lol...but it doesn't seem to work with iTunes 5

#316766

well Apple didn't update the COM SDK for iTunes 5. when they will, I'll post the updated one.

#316837

Any news on this? :)

#319199

Many thanks...

#319230

So, what do we do with this file? I imagine we have to insert the piece of code some place, but how and where?

Thanks!

#389041

Well, does anything happen if you double click the file, blakeman?

-NC

#389051

Well, it shows up as a ".js" file with the safari logo on a blank sheet as the icon. When I open it up, the Safari window comes up and has text that reads:

/*

File: RemoveDeadTracks.js

Version: 1.0

Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc.

("Apple") in consideration of your agreement to the following terms, and your

use, installation, modification or redistribution of this Apple software

constitutes acceptance of these terms. If you do not agree with these terms,

please do not use, install, modify or redistribute this Apple software.

In consideration of your agreement to abide by the following terms, and subject

to these terms, Apple grants you a personal, non-exclusive license, under AppleÕs

copyrights in this original Apple software (the "Apple Software"), to use,

reproduce, modify and redistribute the Apple Software, with or without

modifications, in source and/or binary forms; provided that if you redistribute

the Apple Software in its entirety and without modifications, you must retain

this notice and the following text and disclaimers in all such redistributions of

the Apple Software. Neither the name, trademarks, service marks or logos of

Apple Computer, Inc. may be used to endorse or promote products derived from the

Apple Software without specific prior written permission from Apple. Except as

expressly stated in this notice, no other rights or licenses, express or implied,

are granted by Apple herein, including but not limited to any patent rights that

may be infringed by your derivative works or by other works in which the Apple

Software may be incorporated.

The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO

WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED

WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR

PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN

COMBINATION WITH YOUR PRODUCTS.

IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR

CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE

GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)

ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION

OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT, TORT

(INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN

ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Copyright © 2004 Apple Computer, Inc., All Rights Reserved

*/

var ITTrackKindFile = 1;

var iTunesApp = WScript.CreateObject("iTunes.Application");

var deletedTracks = 0;

var mainLibrary = iTunesApp.LibraryPlaylist;

var tracks = mainLibrary.Tracks;

var numTracks = tracks.Count;

var i;

while (numTracks != 0)

{

var currTrack = tracks.Item(numTracks);

// is this a file track?

if (currTrack.Kind == ITTrackKindFile)

{

// yes, does it have an empty location?

if (currTrack.Location == "")

{

// yes, delete it

currTrack.Delete();

deletedTracks++;

}

}

numTracks--;

}

if (deletedTracks > 0)

{

if (deletedTracks == 1)

{

WScript.Echo("Removed 1 dead track.");

}

else

{

WScript.Echo("Removed " + deletedTracks + " dead tracks.");

}

}

else

{

WScript.Echo("No dead tracks were found.");

}

#389063

It's a javascript. You'll have to save it as an applet or some other format. Check this out:

http://www.oreillynet.com/pub/a/javascript...mac.html?page=1

#389734

localhost, this is great. Anyway to get it to tell what dead track was removed??

#391427