• 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: Getting birth date values...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting birth date values...


  • Subject: Re: Getting birth date values...
  • From: Paul Berkowitz <email@hidden>
  • Date: Wed, 11 Sep 2002 09:50:41 -0700

On 9/11/02 9:08 AM, "Martin Michel" <email@hidden> wrote:

> Hi,
>
> I try to receive birth date values from the Address Book with
> AppleScript, but all I get is company names...
>
> This is my script:
>
> tell application "Address Book"
> set the_people to people
>
> repeat with the_mad_scientist in the_people
> try
> set the_sausage to birth date of the_mad_scientist
> on error
> beep
> end try
> end repeat
> end tell
>
>
> I have to say that I use german language on my Mac OS X 10.2.
>
> Has anybody the same problem?
>

Yes. It's a bug. You can't get or set birth date in AppleScript. You just
get the organization if you try - if it exists - otherwise you get the
name.

Here's another one:

You can get and set AIM Handle if you have already created one in the UI
(and it's a little tricky: you have to get 'value of first AIM Handle'
without setting the AIM Handle itself to a variable or all you get is
'application "Address Book" - another bug), but you can't actually make an
AIM Handle by AppleScript.

Here's another one:

You can set and get nickname, title and suffix by AppleScript, but it
doesn't do anything in the UI since they don't exist there.

Here's another one:

You can't get or set MSN Handle, Jabber handle, etc, which don't exist
anyway although they're in the dictionary.

Here's another one:

You can't get or set middle name, which doesn't exist.

Aside from all that, it's working pretty well ;-), if you remember to 'make
new [element] at end of [elements]' (or beginning) every time you need to
create a new element of an object.

--
Paul Berkowitz
_______________________________________________
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: Getting birth date values...
      • From: Martin Michel <email@hidden>
References: 
 >Getting birth date values... (From: Martin Michel <email@hidden>)

  • Prev by Date: Droplet to Rename Breaks Under Jaguar
  • Next by Date: JavaScript as "system-level library"
  • Previous by thread: Getting birth date values...
  • Next by thread: Re: Getting birth date values...
  • Index(es):
    • Date
    • Thread