Re: Address Book: Delete Person
Re: Address Book: Delete Person
- Subject: Re: Address Book: Delete Person
- From: JimMain <email@hidden>
- Date: Wed, 21 Jan 2004 14:31:43 -0800
Thanks, Chris,
I ran the script example you gave (removing the conditional), and got
the following error:
Address Book got an error: NSInternalScriptError
This means I can't delete people using Jaguar, right?
On Thursday, Jan 15, 2004, at 23:25 US/Pacific, Christopher Nebel wrote:
However, I then find the same thing you did: although the "delete"
command is in fact sent, p doesn't get deleted. For this, I am at a
loss, and will file a bug. In the meantime, this works:
repeat with p from 1 to (count people)
if exists (first AIM Handle of person p whose label contains "%X")
then delete person p
end repeat
--Chris Nebel
AppleScript Engineering
_______________________________________________
Script I ran:
tell application "Address Book"
repeat with p from 1 to (count people)
delete person p
end repeat
save addressbook
activate
end tell
Jim Main
-------------------------------------------
619-948-5293
email@hidden
-------------------------------------------
_______________________________________________
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.