• 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: Another address book question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Another address book question (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Another address book question
  • Next by Date: Re: Simple? Tell FMP to open a database?
  • Previous by thread: Re: Another address book question
  • Next by thread: UI Scripting Display's Resolution
  • Index(es):
    • Date
    • Thread