Hey,

Another question - to add new entries to the address book, I think I do something like this:

  my $person = $glue->make(new => 'person', with_properties =>
                                 {first_name => 'Foo',
                                  last_name => 'Bar',
                                  email => '[EMAIL PROTECTED]'});

When I do this, the first_name and last_name entries show up fine in Address Book, but the email doesn't. I'm guessing this is because it's an 'element' of a person and not a 'property', whatever that means (what does that mean?).

 -Ken


On Jul 2, 2004, at 6:06 PM, Ken Williams wrote:

Hi,

When I get a record from the Address Book like so:

  use Mac::Glue ':all';
  my $ab = Mac::Glue->new('Address Book');
  my $person = $ab->obj( people => whose(AND =>
       [[ first_name => begins_with => 'Smorgasbord' ],
        [ last_name  => equals      => 'Milhouse'    ]] );

I can't seem to tell the difference between someone who doesn't exist in the Address Book, and someone who exists but has no phone number (or address, or whatever). Any tips on how to do this?

 -Ken




Reply via email to