• 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
"a reference to"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"a reference to"


  • Subject: "a reference to"
  • From: Michelle Steiner <email@hidden>
  • Date: Sun, 6 Jan 2008 18:08:02 -0700

Even after writing scripts for nearly a decade and a half, I still haven't been able to wrap my brain around "a reference to".  This script fails:

tell application "Address Book"
set M_List_Group to people of group "Mailing Lists"
set label of email 1 of every item of M_List_Group to "List"
save addressbook
end tell

The error is:

"Can't get email 1 of {person id \"1FFAD12D-6EAA-11D7-94DF-000393D49636:ABPerson\" of application \"Address Book\", etc.

This works:

tell application "Address Book"
set M_List_Group to a reference to people of group "Mailing Lists"
set label of email 1 of M_List_Group to "List"
save addressbook
end tell

What is the difference?

-- 
"Life is to cool to miss."
-- Sammy Camarata


 _______________________________________________
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

  • Follow-Ups:
    • Re: "a reference to"
      • From: Doug McNutt <email@hidden>
    • Re: "a reference to"
      • From: has <email@hidden>
    • Re: "a reference to"
      • From: Malcolm Fitzgerald <email@hidden>
    • Re: "a reference to"
      • From: deivy petrescu <email@hidden>
    • Re: "a reference to"
      • From: Neil Faiman <email@hidden>
  • Prev by Date: Re: Check if file exists fails
  • Next by Date: Re: "a reference to"
  • Previous by thread: Re: Check if file exists fails
  • Next by thread: Re: "a reference to"
  • Index(es):
    • Date
    • Thread