• 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
Re: Address Book scripting bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Address Book scripting bug
      • From: Michelle Steiner <email@hidden>
References: 
 >Re: Address Book scripting bug (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Folder Actions: specific complaints please
  • Next by Date: Re: Finder script to move files
  • Previous by thread: Re: Address Book scripting bug
  • Next by thread: Re: Address Book scripting bug
  • Index(es):
    • Date
    • Thread