"a reference to"
"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