• 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: 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.

  • Follow-Ups:
    • Re: iTunes: any way to delete MP3's based on mod date?
      • From: "John C. Welch" <email@hidden>
  • Prev by Date: AppleWorks database, Apple's example fails
  • Next by Date: Reaching a remote Mac through IP
  • Previous by thread: 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