Re: Deleting address book fields
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