If you want to remove duplicate tracks from your iTunes library do it
as follows. This works only on *consolidated* libraries that are
organized by Artist and Album etc (check corresponding options in
Preferences -> Advanced and choose "Consolidate Library", which will
copy all files into appropriate Artist/Album directories in your
itunes directory.)
1. Open Terminal and type the command to change to your library, e.g.
cd "/Volumes/USB Drive/Music/itunes"
2. Make a list of all *potentially* duplicate MP3 files (for example,
"./Zero 7/Simple Things/03 Destiny 1.mp3") with the following command:
find . -name "* 1.mp3" > /tmp/list-1.txt
3. From the files listed, remove all files from disk that are
*actually* duplicates (for example "./Zero 7/Simple Things/03 Destiny
1.mp3" *if* there is also a "./Zero 7/Simple Things/03 Destiny.mp3",
and both files are equal):
for i in $(cat /tmp/list-1.txt | perl -pe 's/ /XYZ/g'); do i=$(echo $i
| perl -pe 's/XYZ/ /g'); old=$(echo "$i" | perl -pe 's/
1\.mp3$/.mp3/'); cmp -s "$i" "$old" && rm "$i"; done 2>/dev/null
The 3rd step can take a few minutes to run because of all the file
comparisons (cmp command). You can also run the same command where you
replace the "rm" with "echo" to just output the files instead of
removing them, to convince you that those are really the files you
want to remove. If that looks good, run it with "rm" as above.
4. They are now removed from the file system and appear as dead tracks
with exclamation marks ('!') in iTunes. Remove all these dead entries
with Doug's "Remove Dead Super" Apple Script:
http://dougscripts.com/itunes/scripts/ss.php?sp=removedeadsuper
I don't know if there is an easier way (well, obviously, the commands
1.-3. could be packaged into a script), but this worked for me and is
quite easy. (I post this so I can find it again when I need it, and
maybe it will be useful for other people too.)
Such a procedure (using the cmp command on duplicate candidates) could
really be done by iTunes itself. I don't know why they haven't done
that yet (their "show duplicate" command is the first step toward that
functionality).
Markus
|
|
0
|
|
|
|
Reply
|
markus.dehmann (142)
|
12/13/2008 9:00:16 PM |
|
In article
<ca2772df-cfd7-477b-9df3-a1cccaaa7972@d32g2000yqe.googlegroups.com>,
Markus Dehmann <markus.dehmann@gmail.com> wrote:
> If you want to remove duplicate tracks from your iTunes library do it
> as follows.
The shorter answer is:
Go to: <http://dougscripts.com/itunes/index.php>
Download the AppleScript for delete duplicate tracks.
Make a donation as this valuable resource is worth supporting.
Install the script, per instructions at Doug's web site.
Now, this script and others you might have found of interest is always
available from the iTunes script menu.
|
|
0
|
|
|
|
Reply
|
Gerry
|
12/13/2008 9:19:05 PM
|
|
In article <MeetMe-0CEA07.13190513122008@newsclstr03.news.prodigy.net>,
Gerry <MeetMe@Three.com> wrote:
> In article
> <ca2772df-cfd7-477b-9df3-a1cccaaa7972@d32g2000yqe.googlegroups.com>,
> Markus Dehmann <markus.dehmann@gmail.com> wrote:
>
> > If you want to remove duplicate tracks from your iTunes library do it
> > as follows.
>
> The shorter answer is:
>
> Go to: <http://dougscripts.com/itunes/index.php>
>
> Download the AppleScript for delete duplicate tracks.
What does that get you that iTune's "show duplicates" menu item doesn't?
--
Tom "Tom" Harrington
Independent Mac OS X developer since 2002
http://www.atomicbird.com/
|
|
0
|
|
|
|
Reply
|
Tom
|
12/14/2008 12:21:17 AM
|
|
In article <tph-15A4DE.17211713122008@localhost>,
Tom Harrington <tph@pcisys.no.spam.dammit.net> wrote:
> In article <MeetMe-0CEA07.13190513122008@newsclstr03.news.prodigy.net>,
> Gerry <MeetMe@Three.com> wrote:
>
> > In article
> > <ca2772df-cfd7-477b-9df3-a1cccaaa7972@d32g2000yqe.googlegroups.com>,
> > Markus Dehmann <markus.dehmann@gmail.com> wrote:
> >
> > > If you want to remove duplicate tracks from your iTunes library do it
> > > as follows.
> >
> > The shorter answer is:
> >
> > Go to: <http://dougscripts.com/itunes/index.php>
> >
> > Download the AppleScript for delete duplicate tracks.
>
> What does that get you that iTune's "show duplicates" menu item doesn't?
The iTunes show duplicates command simply displays a list of all
duplicate songs. The script does much more than that, as evidenced by
the description of the script on the web page.
--
Send responses to the relevant news group rather than email to me.
E-mail sent to this address may be devoured by my very hungry SPAM
filter. Due to Google's refusal to prevent spammers from posting
messages through their servers, I often ignore posts from Google
Groups. Use a real news client if you want me to see your posts.
JR
|
|
0
|
|
|
|
Reply
|
Jolly
|
12/14/2008 4:05:33 AM
|
|
In article <jollyroger-936EEB.22053213122008@news.individual.net>,
Jolly Roger <jollyroger@pobox.com> wrote:
> In article <tph-15A4DE.17211713122008@localhost>,
> Tom Harrington <tph@pcisys.no.spam.dammit.net> wrote:
>
> > In article <MeetMe-0CEA07.13190513122008@newsclstr03.news.prodigy.net>,
> > Gerry <MeetMe@Three.com> wrote:
> >
> > > In article
> > > <ca2772df-cfd7-477b-9df3-a1cccaaa7972@d32g2000yqe.googlegroups.com>,
> > > Markus Dehmann <markus.dehmann@gmail.com> wrote:
> > >
> > > > If you want to remove duplicate tracks from your iTunes library do it
> > > > as follows.
> > >
> > > The shorter answer is:
> > >
> > > Go to: <http://dougscripts.com/itunes/index.php>
> > >
> > > Download the AppleScript for delete duplicate tracks.
> >
> > What does that get you that iTune's "show duplicates" menu item doesn't?
>
> The iTunes show duplicates command simply displays a list of all
> duplicate songs. The script does much more than that, as evidenced by
> the description of the script on the web page.
Which script? I tried searching on "delete duplicate tracks" and got 22
pages of results. Nothing in the first few pages matched, so I decided
to ask instead. There's a "remove duplicate tracks from playlist", but
that doesn't seem like it's quite the same thing (removing duplicates
from a playlist isn't the same as removing duplicates from your
library), and doesn't seem to do "much more" than iTunes' built-in
duplicate finding.
--
Tom "Tom" Harrington
Independent Mac OS X developer since 2002
http://www.atomicbird.com/
|
|
0
|
|
|
|
Reply
|
Tom
|
12/15/2008 4:41:45 PM
|
|
In article <tph-B2F774.09414415122008@localhost>,
Tom Harrington <tph@pcisys.no.spam.dammit.net> wrote:
> In article <jollyroger-936EEB.22053213122008@news.individual.net>,
> Jolly Roger <jollyroger@pobox.com> wrote:
>
> > In article <tph-15A4DE.17211713122008@localhost>,
> > Tom Harrington <tph@pcisys.no.spam.dammit.net> wrote:
> >
> > > In article <MeetMe-0CEA07.13190513122008@newsclstr03.news.prodigy.net>,
> > > Gerry <MeetMe@Three.com> wrote:
> > >
> > > > In article
> > > > <ca2772df-cfd7-477b-9df3-a1cccaaa7972@d32g2000yqe.googlegroups.com>,
> > > > Markus Dehmann <markus.dehmann@gmail.com> wrote:
> > > >
> > > > > If you want to remove duplicate tracks from your iTunes library do it
> > > > > as follows.
> > > >
> > > > The shorter answer is:
> > > >
> > > > Go to: <http://dougscripts.com/itunes/index.php>
> > > >
> > > > Download the AppleScript for delete duplicate tracks.
> > >
> > > What does that get you that iTune's "show duplicates" menu item doesn't?
> >
> > The iTunes show duplicates command simply displays a list of all
> > duplicate songs. The script does much more than that, as evidenced by
> > the description of the script on the web page.
>
> Which script? I tried searching on "delete duplicate tracks" and got 22
> pages of results. Nothing in the first few pages matched, so I decided
> to ask instead.
Huh? Hmm...
1. Go here: <http://dougscripts.com/itunes/index.php>
2. In the "search scripts" field, type "duplicates".
3. Press Return.
I see a total of five scripts listed.
"Corral iTunes Dupes v2.0.1" seems to be what you'd want.
Note: The description of "Corral iTunes Dupes" indicates that you'll
prefer "Dupin", which, incidentally costs $15.
--
Send responses to the relevant news group rather than email to me.
E-mail sent to this address may be devoured by my very hungry SPAM
filter. Due to Google's refusal to prevent spammers from posting
messages through their servers, I often ignore posts from Google
Groups. Use a real news client if you want me to see your posts.
JR
|
|
0
|
|
|
|
Reply
|
Jolly
|
12/15/2008 4:50:05 PM
|
|
In article <jollyroger-545273.10500515122008@news.individual.net>,
Jolly Roger <jollyroger@pobox.com> wrote:
> In article <tph-B2F774.09414415122008@localhost>,
> Tom Harrington <tph@pcisys.no.spam.dammit.net> wrote:
>
> > In article <jollyroger-936EEB.22053213122008@news.individual.net>,
> > Jolly Roger <jollyroger@pobox.com> wrote:
> >
> > > In article <tph-15A4DE.17211713122008@localhost>,
> > > Tom Harrington <tph@pcisys.no.spam.dammit.net> wrote:
> > >
> > > > In article <MeetMe-0CEA07.13190513122008@newsclstr03.news.prodigy.net>,
> > > > Gerry <MeetMe@Three.com> wrote:
> > > >
> > > > > In article
> > > > > <ca2772df-cfd7-477b-9df3-a1cccaaa7972@d32g2000yqe.googlegroups.com>,
> > > > > Markus Dehmann <markus.dehmann@gmail.com> wrote:
> > > > >
> > > > > > If you want to remove duplicate tracks from your iTunes library do
> > > > > > it
> > > > > > as follows.
> > > > >
> > > > > The shorter answer is:
> > > > >
> > > > > Go to: <http://dougscripts.com/itunes/index.php>
> > > > >
> > > > > Download the AppleScript for delete duplicate tracks.
> > > >
> > > > What does that get you that iTune's "show duplicates" menu item
> > > > doesn't?
> > >
> > > The iTunes show duplicates command simply displays a list of all
> > > duplicate songs. The script does much more than that, as evidenced by
> > > the description of the script on the web page.
> >
> > Which script? I tried searching on "delete duplicate tracks" and got 22
> > pages of results. Nothing in the first few pages matched, so I decided
> > to ask instead.
>
> Huh? Hmm...
>
> 1. Go here: <http://dougscripts.com/itunes/index.php>
> 2. In the "search scripts" field, type "duplicates".
> 3. Press Return.
>
> I see a total of five scripts listed.
Oddly enough, if you provide more search terms on that site, the search
gets _less_ specific instead of more specific. I was looking for a
script that would delete duplicate tracks, so I typed "delete duplicate
tracks" and got a zillion irrelevant results.
--
Tom "Tom" Harrington
Independent Mac OS X developer since 2002
http://www.atomicbird.com/
|
|
0
|
|
|
|
Reply
|
Tom
|
12/15/2008 9:57:11 PM
|
|
In article <tph-D1AADD.14571115122008@localhost>,
Tom Harrington <tph@pcisys.no.spam.dammit.net> wrote:
> In article <jollyroger-545273.10500515122008@news.individual.net>,
> Jolly Roger <jollyroger@pobox.com> wrote:
>
> > In article <tph-B2F774.09414415122008@localhost>,
> > Tom Harrington <tph@pcisys.no.spam.dammit.net> wrote:
> >
> > > In article <jollyroger-936EEB.22053213122008@news.individual.net>,
> > > Jolly Roger <jollyroger@pobox.com> wrote:
> > >
> > > > In article <tph-15A4DE.17211713122008@localhost>,
> > > > Tom Harrington <tph@pcisys.no.spam.dammit.net> wrote:
> > > >
> > > > > In article
> > > > > <MeetMe-0CEA07.13190513122008@newsclstr03.news.prodigy.net>,
> > > > > Gerry <MeetMe@Three.com> wrote:
> > > > >
> > > > > > In article
> > > > > > <ca2772df-cfd7-477b-9df3-a1cccaaa7972@d32g2000yqe.googlegroups.com>,
> > > > > > Markus Dehmann <markus.dehmann@gmail.com> wrote:
> > > > > >
> > > > > > > If you want to remove duplicate tracks from your iTunes library
> > > > > > > do
> > > > > > > it
> > > > > > > as follows.
> > > > > >
> > > > > > The shorter answer is:
> > > > > >
> > > > > > Go to: <http://dougscripts.com/itunes/index.php>
> > > > > >
> > > > > > Download the AppleScript for delete duplicate tracks.
> > > > >
> > > > > What does that get you that iTune's "show duplicates" menu item
> > > > > doesn't?
> > > >
> > > > The iTunes show duplicates command simply displays a list of all
> > > > duplicate songs. The script does much more than that, as evidenced by
> > > > the description of the script on the web page.
> > >
> > > Which script? I tried searching on "delete duplicate tracks" and got 22
> > > pages of results. Nothing in the first few pages matched, so I decided
> > > to ask instead.
> >
> > Huh? Hmm...
> >
> > 1. Go here: <http://dougscripts.com/itunes/index.php>
> > 2. In the "search scripts" field, type "duplicates".
> > 3. Press Return.
> >
> > I see a total of five scripts listed.
>
> Oddly enough, if you provide more search terms on that site, the search
> gets _less_ specific instead of more specific. I was looking for a
> script that would delete duplicate tracks, so I typed "delete duplicate
> tracks" and got a zillion irrelevant results.
It's probably defaulting to an "OR" search rather than a "AND" or
literal search.
--
Send responses to the relevant news group rather than email to me.
E-mail sent to this address may be devoured by my very hungry SPAM
filter. Due to Google's refusal to prevent spammers from posting
messages through their servers, I often ignore posts from Google
Groups. Use a real news client if you want me to see your posts.
JR
|
|
0
|
|
|
|
Reply
|
Jolly
|
12/15/2008 11:02:44 PM
|
|
|
7 Replies
42 Views
(page loaded in 0.133 seconds)
|