• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: iTunes: any way to delete MP3's based on mod date?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: iTunes: any way to delete MP3's based on mod date? (From: Chris Janton <email@hidden>)

  • Prev by Date: Re: Order of operations (was: Eigenvalues &/or eigenvectors,
  • Next by Date: Entourage password identities
  • Previous by thread: Re: iTunes: any way to delete MP3's based on mod date?
  • Next by thread: Re: iTunes: any way to delete MP3's based on mod date?
  • Index(es):
    • Date
    • Thread