• 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
Re: Address Book: Delete Person
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Address Book: Delete Person (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: BUG ID # 3519134: AppleScript problem with files on "non-mounted"volumes
  • Next by Date: Re: applescript and browsers
  • Previous by thread: Re: Address Book: Delete Person
  • Next by thread: Re: Address Book: Delete Person (still can't)
  • Index(es):
    • Date
    • Thread