• 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: birth date from Address Book
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: birth date from Address Book


  • Subject: Re: birth date from Address Book
  • From: Darwin Zins <email@hidden>
  • Date: Thu, 13 Mar 2003 08:47:17 -0600

I apologize for being slow here. I see in the dictionary where it says:
Class application: Users address book database
Elements:
group by name, by numeric index, before/after another element, as a
range of elements, satisfying a test, by ID
person by name, by numeric index, before/after another element, as a
range of elements, satisfying a test, by ID
document by name, by numeric index, before/after another element, as a
range of elements, satisfying a test
window by name, by numeric index, before/after another element, as a
range of elements, satisfying a test, by ID

The by name part I suppose is what tells me that I can tell person
"Darwin Zins". It never even occured to me to do it that way because
you can have multiple people with the same first and last name. I just
tested that and tell person name always returns the first person it
finds with that name. I am now doing it this way:
tell application "Address Book"
set found_in_a to true
set thePerson to z_first_name & " " & z_last_name
set aCard to person thePerson
try
last name of aCard
on error
set found_in_a to false
end try
if found_in_a is true then

I suppose what I really need to do is create an external mapping file
that maps the Apple AB ID to the Zaurus AB ID. I just wanted to get it
to actually sync by First Name and Last Name and then add that later,
but now the Script Editor keeps telling me that I have no more room to
add any characters. Is the only option at this point to buy the Script
Debugger from LNS (other than making the code smaller :)

Darwin

On Wednesday, March 12, 2003, at 05:51 PM, Darwin Zins wrote:

>> And here it is. It seems very long-winded to get properties like
>> that. If Address book sucks, as it does, then the last thing that's
>> needed is to make a meal of its shortcomings. The thing can be done
>> quite simply like this
>>
>> tell app "Address Book"
>> set birthday to person "John Delacour"'s birth date
>
> Is this for real? Can you do something like:
> set thePerson to "John Delacour"
> set aCard to person thePerson
>
> What happens if thePerson doesn't exist in the Address Book? Is it
> fast to look up that person? I currently have:
> repeat with aCard in (every person where last name is z_last_name and
> first name is z_first_name)
>
> Thanks,
>
> Darwin
> _______________________________________________
> applescript-users mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/applescript-users
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: birth date from Address Book
      • From: Paul Berkowitz <email@hidden>
    • Re: birth date from Address Book
      • From: Emmanuel <email@hidden>
References: 
 >Re: birth date from Address Book (From: Darwin Zins <email@hidden>)

  • Prev by Date: Illustrator Newbie question 2
  • Next by Date: Re: scripting mail to select mailboxes
  • Previous by thread: Re: birth date from Address Book
  • Next by thread: Re: birth date from Address Book
  • Index(es):
    • Date
    • Thread