• 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
Counting & trashing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Counting & trashing


  • Subject: Counting & trashing
  • From: Bernard Azancot <email@hidden>
  • Date: Tue, 13 Jul 2004 11:16:16 +0200

Hello Scripters !

I am trying to write a script that performs the following tasks:

1 - count the folders in a container backup folder
2 - if the total number of folders is > 15, select & delete the exceeding older folders .

For my information, I would like to know what this script could become if I want to do the same thing using now a time criteria:
- select folders whose creation date is < today's date minus 15 days, an delet them.

Thanks in advance to bring your lights to a perpetual newbie.
_______________________________________________
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: Counting & trashing
      • From: Walter Ian Kaye <email@hidden>
  • Prev by Date: Re: AppleScript can't launch DVD Player on Mac OS X 10.2
  • Next by Date: Re: Counting & trashing
  • Previous by thread: Re: AppleScript can't launch DVD Player on Mac OS X 10.2
  • Next by thread: Re: Counting & trashing
  • Index(es):
    • Date
    • Thread