• 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
Delete person in AddressBook
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Delete person in AddressBook


  • Subject: Delete person in AddressBook
  • From: "Robert R. Horning" <email@hidden>
  • Date: Thu, 6 Nov 2008 16:24:41 -0700

I have the following snippet of script:

try
tell application "Address Book" to set ThePerson to make new person
...
(code to add information, such as the person's address.)
...
on error
...
end try

Every now and then back comes the following error:

NSReceiverEvaluationScriptError: 4
number 1

In the error handler, I wish to tell Address Book to delete ThePerson so that I can start over, but have found no syntax that works. Any ideas?

Thanks, Bob.
PowerPC G5
OSX 10.4.11
(Plan to migrate to Intel and 10.5)
_______________________________________________
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
  • Follow-Ups:
    • Re: Delete person in AddressBook
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: How can I format an integer ?
  • Next by Date: Re: Delete person in AddressBook
  • Previous by thread: Re: AppleScript-Users Digest, Vol 5, Issue 595
  • Next by thread: Re: Delete person in AddressBook
  • Index(es):
    • Date
    • Thread