Message: 4
Date: Sun, 29 Jul 2007 11:10:13 +1000
From: Peter Baxter <email@hidden>
Subject: Address book
To: Apple Script <email@hidden>
Message-ID: <email@hidden">email@hidden>
Content-Type: text/plain; charset="iso-8859-1"
Hi people,
I was playing with the concept of an automatic updater of email
addresses for mail to the address book based on Paul Tuckey's idea.
Unfortunately this part of the script does not work:
tell application "Address Book"
try
set thePeople to (firstName & " " & lastName)
set first email of thePeople to theAddress
save addressbook
on error
set thePeople to (lastName & " " & firstName)
set first email of thePeople to theAddress
save addressbook
end try
end tell
I get a class error
Can't set «class az21» 1 of "David Baxter" to
"email@hidden".
Why?
Peter Baxter
email@hidden