tag:blogger.com,1999:blog-8928198048296063917.post7923548410868874598..comments2023-05-22T02:54:16.404-07:00Comments on Paul's Time Sink: script to filter tracks by locationPaulhttp://www.blogger.com/profile/11459304710362963053noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-8928198048296063917.post-50248740465324222132006-06-21T11:14:00.000-07:002006-06-21T11:14:00.000-07:00noted your project here and wonder whether yu can ...noted your project here and wonder whether yu can help me with one of my own.<br>I'm attempting to weed down my library after converting the files to AAC (to save space on my harddisk) and, while most come out as smaller files, some are actually larger. I'm looking for a script I can use that will find files with the same name, by the same artist, that are the same time length and delete the larger of the two or more.<br>The reason why time length is an issue is I have different recording of the same songs by the same artist that I would like to keep.<br>The reason why it may be more than two to choose from is that some files were copied more than once by accident.<br>Thanks for any help.echnoreply@blogger.comtag:blogger.com,1999:blog-8928198048296063917.post-68097858777899806292006-06-21T13:50:00.000-07:002006-06-21T13:50:00.000-07:00ech,If you want to find all of the tracks that hav...ech,<br>If you want to find all of the tracks that have the same artist, title and duration you can use an applescript like this:<br>tell application "iTunes"<br>set trackList to every file track of library playlist 1 where artist = "Louis Armstrong" and name = "Christmas In New Orleans" and duration = 173<br>end tell<br>If you were to run some code like that for every track in your library, you can get the list of duplicates. If the list is greater than one track, then delete the one that is largest.<br>One thing to be aware of is that I have noticed that when ordering tracks by track number, sometime iTunes will not interleave the tracks of different type.Paul Westbrookhttp://www.paulstimesink.comnoreply@blogger.com