Re: Address Book bugs
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