Re: Dates
Re: Dates
- Subject: Re: Dates
- From: Ed Stockly <email@hidden>
- Date: Thu, 3 Jan 2008 09:38:45 -0800
One way to construct a date is to use a string, but there are other ways. As to the format of the string, it depends entirely on how you have things set up in the International System Preferences panel.
AppleScript is very flexible in coercing strings to dates and I don't believe that the International preferences comes into play that much (maybe in determining if 1/5/08 refers to January or May, but I'm not sure about that). The preferences do dictate the format of the coercion from date to date string.
There still may be a problem with this script. The date object is precise:
--("Wednesday, January 2, 2008 3:22:23 PM")
Are you really looking only for messages that were sent at that exact time, to the second?
You may need to narrow your search to include only the date, not the time, or the date and the hour or minute, but not the second.
ES
=
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
- Follow-Ups:
- Re: Dates
- From: "Mark J. Reed" <email@hidden>