• 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
Deleting address book fields
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Deleting address book fields


  • Subject: Deleting address book fields
  • From: Rob Lewis <email@hidden>
  • Date: Wed, 26 Sep 2007 21:52:40 -0700

Many entries in my Address Book file have one or more custom date fields labeled "NC Mod Date". I want to go through the whole file and delete all these fields. The following doesn't seem to work. What am I doing wrong? 


tell application "Address Book"


set no_persons to (count every person)


repeat with p_no from 1 to no_persons


try


tell person p_no
delete (every custom date whose label is "NC Mod Date")
end tell


end try


end repeat


end tell



 _______________________________________________
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: Deleting address book fields
      • From: Christopher Nebel <email@hidden>
    • Adobe InDesign CS2 - Anchored Text Frame
      • From: Rob Stott <email@hidden>
  • Prev by Date: Re: Setting Pages Insertion point (was Setting TextEdit Š )
  • Next by Date: Adobe InDesign CS2 - Anchored Text Frame
  • Previous by thread: Re: ImageMagick Problem
  • Next by thread: Adobe InDesign CS2 - Anchored Text Frame
  • Index(es):
    • Date
    • Thread