Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?


share|improve this question

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

Your Answer


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.