• 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 bugs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Address Book bugs


  • Subject: Re: Address Book bugs
  • From: Michelle Steiner <email@hidden>
  • Date: Mon, 1 Mar 2010 15:23:45 -0700

On Mar 1, 2010, at 3:13 PM, Shane Stanley wrote:

You can only get the date string of a date. So "date string of current date"
fails -- you need the parentheses to force evaluation of current date first.

In your earlier example you also need to get the date first:

   date string of (get creation date of person 1)

That doesn't help with my original example:

tell application "Address Book"
set TodaysPeople to the people whose (date string of (get creation date)) is date string of (current date)
end tell

The above script fails with 

error "Address Book got an error: Can’t get creation date." number -1728 from creation date

The original script, without the explicit "get" fails with this:

error "Address Book got an error: Can’t make date string of creation date into type specifier." number -1700 from date string of creation date to specifier

-- Michelle

-- 
Whoever said the last man standing is the winner didn't invite the girl.

 _______________________________________________
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 bugs
      • From: Shane Stanley <email@hidden>
References: 
 >Re: Address Book bugs (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Address Book bugs
  • Next by Date: Re: Network Preferences Suite
  • Previous by thread: Re: Address Book bugs
  • Next by thread: Re: Address Book bugs
  • Index(es):
    • Date
    • Thread