• 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
Finding the oldest date in a list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Finding the oldest date in a list


  • Subject: Finding the oldest date in a list
  • From: Steven Valenti <email@hidden>
  • Date: Tue, 18 May 2004 16:14:10 -0400

I would like to find the oldest date in a list but just can't seem to
think how to evaluate all of the items. Can anyone help? The items in
this list are names of folders that were created in a backup script and
after 5 days I need to delete the oldest backup.

set BackUpFolder to {"5/11/2004", "5/12/2004", "5/13/2004",
"5/14/2004", "5/17/2004", "5/18/2004"}
set FirstDate to item 1 of BackUpFolder
set SecondDate to item 2 of BackUpFolder
date FirstDate < date SecondDate

--true
_______________________________________________
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: Finding the oldest date in a list
      • From: Nigel Smith <email@hidden>
    • Re: Finding the oldest date in a list
      • From: "John W. Baxter" <email@hidden>
    • Re: Finding the oldest date in a list
      • From: Emmanuel <email@hidden>
    • Re: Finding the oldest date in a list
      • From: Walter Ian Kaye <email@hidden>
    • Re: Finding the oldest date in a list
      • From: Graff <email@hidden>
  • Prev by Date: Re: Q: echo | sed -- Solved!
  • Next by Date: First Applescript
  • Previous by thread: Re: Minimizing non-Frontmost Windows
  • Next by thread: Re: Finding the oldest date in a list
  • Index(es):
    • Date
    • Thread