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

Address book


  • Subject: Address book
  • From: Peter Baxter <email@hidden>
  • Date: Sun, 29 Jul 2007 11:10:13 +1000

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



 _______________________________________________
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

  • Prev by Date: Re: AppleScript and shell scripting
  • Next by Date: Re: AppleScript and shell scripting - a starting point
  • Previous by thread: Re: AppleScript-Users Digest, Vol 4, Issue 352
  • Next by thread: Re: Address book
  • Index(es):
    • Date
    • Thread