Re: iTunes: any way to delete MP3's based on mod date?
Re: iTunes: any way to delete MP3's based on mod date?
- Subject: Re: iTunes: any way to delete MP3's based on mod date?
- From: Chris Janton <email@hidden>
- Date: Thu, 15 May 2003 02:08:26 -0700
I'd like to write a script that will delete MP3's in iTunes if their
modification date is greater than 7 days from today. Is this possible?
(I
record a radio broadcast everyday & I'd like to have a script that I
can run
to delete recordings older than a week.)
This shell command would come close...
find /users-files/Music \
\( -mtime 7 -or -mtime 6 -or -mtime 5 -or -mtime 4 -or -mtime 3 -or
-mtime 2 -or -mtime 1 \) \
-exec rm "{}" \;
Just replace "/users-files/Music" with the appropriate path to your
iTunes library.
This shell command
man find
makes for fascinating reading.
Oh, yeah, I assumed you meant for OS X. Everyone runs OS X, right?
8)
----------------------------------
Chris Janton - face at CentosPrime dot COM
Netminder for Opus1.COM
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.