• 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 entries by date created
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: address book entries by date created


  • Subject: Re: address book entries by date created
  • From: Christopher Stone <email@hidden>
  • Date: Sun, 19 Jun 2011 22:32:22 -0500

On Jun 19, 2011, at 21:11, Joshua Whalen wrote:
I need to find a person in my address book by the date their record was created. Is there a way to do this? They only entered their email address, and I don't recall their name, otherwise I wouldn't need to do this. There's over a thousand entries in the address book.
______________________________________________________________________

Hey Joshua,

Something like this might work for you:

set dateRangeStart to date "Tuesday, September 14, 2010 00:00:00"
set dateRangeEnd to date "Wednesday, September 15, 2010 00:00:00"

set l to {}
tell application "Address Book"
try
name of people whose creation date > dateRangeStart and creation date < dateRangeEnd


on error errMsg number errNum
set sep to "=============================="
set e to sep & return & "Error: " & errMsg & return & sep & return ¬
& "Error Number: " & errNum & return & sep
beep
display dialog e
end try
end tell

# Note that 'date "1/1/2011"' will compile to:

date "Saturday, January 01, 2011 00:00:00"

# Although I believe the format depends upon your short date format in the 'Language & Text' prefs and your localization.

--
Best Regards,
Chris

 _______________________________________________
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: address book entries by date created
      • From: Christian Boyce <email@hidden>
References: 
 >address book entries by date created (From: Joshua Whalen <email@hidden>)

  • Prev by Date: address book entries by date created
  • Next by Date: Re: address book entries by date created
  • Previous by thread: address book entries by date created
  • Next by thread: Re: address book entries by date created
  • Index(es):
    • Date
    • Thread