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

Another address book question


  • Subject: Another address book question
  • From: Michelle Steiner <email@hidden>
  • Date: Tue, 17 Feb 2004 14:51:46 -0700

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?

-- Michelle

--
Chastity always takes its toll. In some it produces pimples; in others, sex laws. -- Karl Kraus
_______________________________________________
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.
  • Follow-Ups:
    • Re: Another address book question
      • From: Michael Grant <email@hidden>
    • Re: Another address book question
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Mac Mail Questions
  • Next by Date: Re: Mac Mail Questions
  • Previous by thread: Re: Mac Mail Questions
  • Next by thread: Re: Another address book question
  • Index(es):
    • Date
    • Thread