Re: Address Book scripting bug
Re: Address Book scripting bug
- Subject: Re: Address Book scripting bug
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 27 May 2004 16:09:43 -0700
On 5/27/04 1:47 PM, "Michelle Steiner" <email@hidden> wrote:
>
On May 27, 2004, at 11:45 AM, Paul Berkowitz wrote:
>
>
> set today to date (date string of (current date))
>
>
>
> tell application "Address Book"
>
> set TodaysPeople to the people whose creation date > today
>
> end tell
>
>
Very interesting; I didn't realize that the comparison would coerce the
>
string to a date. Thanks.
It doesn't. I coerced it myself in the first line:
set today to date (date string of (current date))
--> see 'date' above?
Another way to do the same thing is:
set today to (current date)
set time of today to 0
which I find neater (probably quicker, too).
--
Paul Berkowitz
_______________________________________________
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.