Updating email entry in Address Book
Updating email entry in Address Book
- Subject: Updating email entry in Address Book
- From: Paul Tuckey <email@hidden>
- Date: Fri, 27 Jul 2007 17:52:17 +0100
Hi List
This is my first posting for many years so please excuse my
ignorance. Returning to AppleScripting after such a long time has
made me a little rusty.
I am trying to update an email entry in the Address Book so far
without much success.
Please see my example below.
tell application "Address Book"
set thePeople to selection
set theEmail to properties of emails of (item 1 of thePeople)
set value of theEmail to "email@hidden"
end tell
Which give's the following error
Can't set «class az17» of {{id:"6F705B0D-8E1B-42A0-BEE7-
FC870F5F5A8C", class:«class az21», «class az18»:"Email", «class
az17»:"email@hidden"}} to "email@hidden".
Whilst I can find plenty of example's of how to find and create new
email entries I don't seem to be able to find examples or work out
for myself how to update an existing entry.
I suspect Im missing the obvious but at this stage I cant see what it
is hence my plea for help.
Best Wishes
Paul
_______________________________________________
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