Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I'm new to iTunes and I don't like that it lists all files ever played in the categories "Songs" or "Albums" for example. I only have a few albums on my mac, but I have listened to a lot of stuff, mostly from external drives.

My problem: Saying I want to listen to some music, it's pretty hard to find the music which is actually playable, because iTunes shows all files ever played. Is it possible to show only files which I have actually imported, without turning on copy files to iTunes Media?

iTunes

share|improve this question
add comment

1 Answer 1

You can delete items whose files have been removed by running this from AppleScript Editor:

tell application "iTunes"
    repeat 5 times
        repeat with t in file tracks of library playlist 1
            try
                if location of t is missing value then delete t
            end try
        end repeat
    end repeat
end tell

I don't know why you have to run it multiple times, but it usually removes all items after about five times.

share|improve this answer
    
Good idea, didn't think about a script... I've tried it, but I had to run the script multiple times in order to get rid of all dead titles. –  Chris Conway Jan 7 '13 at 10:48
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.