Re: Another address book question
Re: Another address book question
- Subject: Re: Another address book question
- From: Michael Grant <email@hidden>
- Date: Tue, 17 Feb 2004 17:44:51 -0600
On Feb 17, 2004, at 3:51 PM, Michelle Steiner wrote:
Why doesn't this work?
tell application "Address Book"
set this_person to person "Michelle Steiner"
set persons_email to email of this_person
email of items of persons_email whose label is "home" --this line
fails
end tell
"Can't get email of {email 1 of person id
\"8C984718-C1E9-11D6-826B-000A27835F42:ABPerson\" of application
\"Address Book\", email 2 of person id
\"8C984718-C1E9-11D6-826B-000A27835F42:ABPerson\" of application
\"Address Book\"}."
The dictionary says "email: by numeric index, before/after another
element, as a range of elements, satisfying a test, by ID" (I
inserted the colon for clarity.)
So, why doesn't it satisfy the test?
Try it with parentheses: email of (items of persons_email) whose label
is "home"
Michael
--
He treats us like men. He lets us wear earrings.
- Torrin Polk, commenting on his coach
_______________________________________________
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.