• 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: Remove Fields From Record?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Remove Fields From Record?


  • Subject: Re: Remove Fields From Record?
  • From: Gary Beberman <email@hidden>
  • Date: Mon, 1 Aug 2005 19:23:50 -0700

Michelle:

This is what I saw in the Address Book dictionary:

person n, pl people [inh. entry > item] : A Person Record in the address book database.

Doesn't that mean a "person" object is a record?

My plan was to compare the people records themselves to see if they were identical. That way, I would not have to figure out if new information (e.g. an additional work phone number) had been entered for the person. But, to do so successfully, I was going to have to take out the fields which made the record itself unique (e.g. ID).

Therefore, I wanted to pull a person record with all of its data and drop from it the following fields:

- creation date
- modification date
- id
- vcard

And, to make it convenient, I wanted to create the record and drop the fields rather than specify the many fields that are included in an address book record.

This idea was based on a simple experiment:

set r1 to {fname:"fred", lname:"flintstone"}
set r2 to {fname:"fred", lname:"flintstone"}
r1 = r2

produces "true"

But,
set r1 to {fname:"fred", lname:"flintstone"}
set r2 to {fname:"wilma", lname:"flintstone"}
r1 = r2

produces false

So, if I could compare two person records, I could determine the dupes without have to check every field in the record. If R1 = R2, the record would be a dupe.

Hope that explains it.

Gary


At 2:48 PM -0700 8/1/05, Michelle Steiner wrote:
On Aug 1, 2005, at 8:27 AM, Gary Beberman wrote:

I would like to try to find and delete duplicate records in Address Book. Using basic information like name or address won't do it as the duplicates have been long resident and some have been updated.

The ideal way to handle this would be to copy the fairly large address book person record but remove fields which contain record-unique info (like ID and vcard).

Well, first of all, the address book doesn't have records; it has properties.

But I don't understand what you want to keep and what you want to remove. Exactly which data do you want to compare?

-- Michelle

--
I can't be in my second childhood;
I haven't finished the first one yet.

_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Remove Fields From Record?
      • From: Christopher Nebel <email@hidden>
    • Re: Remove Fields From Record?
      • From: Michelle Steiner <email@hidden>
References: 
 >Remove Fields From Record? (From: Gary Beberman <email@hidden>)
 >Re: Remove Fields From Record? (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Remove Fields From Record?
  • Next by Date: SetVisibleInTiger
  • Previous by thread: Re: Remove Fields From Record?
  • Next by thread: Re: Remove Fields From Record?
  • Index(es):
    • Date
    • Thread