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: "John C. Welch" <email@hidden>
- Date: Thu, 15 May 2003 07:36:05 -0400
On 05/15/2003 05:08, "Chris Janton" <email@hidden> did proclaim:
>
> 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.
However, that's not going to make iTunes happy, and you create more work by
avoiding AppleScript.
If you look in the iTunes Dictionary, both URL Track and File Track
properties have a modification date and a played date. If you use those,
then you can have iTunes do this for you and be able to keep track of
modifications to its playlist.
john
--
No matter how long the river, the river will reach the sea.
-Eugene Fitch Ware
_______________________________________________
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.