Re: Address Book: Getting a reference to email by ID
Re: Address Book: Getting a reference to email by ID
- Subject: Re: Address Book: Getting a reference to email by ID
- From: Michelle Steiner <email@hidden>
- Date: Fri, 11 Apr 2008 07:12:35 -0700
On Apr 11, 2008, at 6:29 AM, Timothy Bates wrote:
tell application "Address Book"
set myGuy to item 1 of (every person whose id is
"E28F0E618-55D1-4E37-BC2A-A1D6FCB2B3AE:ABPerson")
set x to every email of myGuy whose label is "work"
return value of item 1 of x
end tell
Observation about scripting style: I would have written it like this:
tell application "Address Book"
set myGuy to item 1 of (people whose id is "E28F0E618-55D1-4E37-BC2A-
A1D6FCB2B3AE:ABPerson")
return item 1 of (every email of myGuy whose label is "work")
end tell
-- Michelle
--
It is not who I am underneath, but what I do, that defines me.
_______________________________________________
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