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

Re: Deleting address book fields


  • Subject: Re: Deleting address book fields
  • From: Christopher Nebel <email@hidden>
  • Date: Fri, 28 Sep 2007 12:16:52 -0700

On Sep 26, 2007, at 9:52 PM, Rob Lewis wrote:

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

I'm not sure that you're doing anything wrong -- that's exactly the syntax that ought to work, and it does work with other contact info types, such as phones, emails, and addresses.  This looks like a bug in Address Book to me.


--Chris Nebel
AppleScript Engineering

 _______________________________________________
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

References: 
 >Deleting address book fields (From: Rob Lewis <email@hidden>)

  • Prev by Date: Re: Wget response
  • Next by Date: Re: Setting Pages Insertion point (was Setting TextEdit S( )
  • Previous by thread: Re: Adobe InDesign CS2 - Anchored Text Frame
  • Next by thread: Re: Deleting address book fields
  • Index(es):
    • Date
    • Thread