Finding the oldest date in a list
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.