Re: Remove a Person from Address Book
Re: Remove a Person from Address Book
- Subject: Re: Remove a Person from Address Book
- From: Paul Berkowitz <email@hidden>
- Date: Wed, 12 Mar 2003 10:44:27 -0800
On 3/12/03 9:47 AM, "Darwin Zins" <email@hidden> wrote:
>
if found_in_z is false then
>
tell me to display dialog "Removing " & a_first_name & " " &
>
a_last_name
>
remove aCard
>
end if
>
end repeat
>
>
When it runs I get this error: "Address Book got an error:
>
NSCannotCreateScriptCommandError"
>
>
How do I tell the Address Book to delete this person?
Read the dictionary.
delete aCard
'delete' is in the Standard Suite. You're just looking in the Address Book
Suite. Always look first in the Standard Suite if you're not familiar with
it. 'remove' is just for removing people from groups, as in the UI. 'delete'
is for deleting them from the Address Book.
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.