Re: Address Book bug
Re: Address Book bug
- Subject: Re: Address Book bug
- From: Paul Berkowitz <email@hidden>
- Date: Sat, 21 Jan 2006 14:20:38 -0800
- Thread-topic: Address Book bug
Title: Re: Address Book bug
That's the bug. But since I got used to 'at the end of' back in Jaguar when it was needed for every element in Address Book, I just went on using it so didn't know about the specific problem for 'custom date' - which in fact was new in Panther, at the same time as 'at the end of' was not needed for anything else. I suppose someone implemented the change for older elements and forgot to test with the new custom date object - which might not have been ready for testing at the time.
In fact, you get the same error for 'related name' and for 'url', both of which were also new, if you don't use 'at the end of'. (You don't seem to have tested these.) Actually, 'url' was new in Tiger, not Panther, so I think that proves that whoever checked this over for Panther, before 'custom date' and 'related name' were ready, never went back and checked again. I'd even guess that it was someone from the AppleScript team who was guiding the process back in Panther, and the Address Book developers never really learned how to do it, never checked the newer objects themselves, and promptly forgot all about it when Tiger added 'url' and goofed again. Sort of par for the course... You might as well bug all of these, and check for others.
--
Paul Berkowitz
From: Rob Lewis <email@hidden>
Date: Sat, 21 Jan 2006 12:32:10 -0800
To: <email@hidden>
Subject: Re: Address Book bug
Thanks. It is weird, don't you think, that this works fine:Â
make new email with properties {label:"Email 3", value:ABauxemail}
While the custom date object (and ONLY it, it seems) needs the "at end of custom dates" qualifier?Â
Date: Fri, 20 Jan 2006 19:02:19 -0800
From: Paul Berkowitz <email@hidden>
Subject: Re: Address Book bug
To: AppleScript-Users <email@hidden>
Message-ID: <BFF6E43B.BFC58¾email@hidden>
Content-Type: text/plain; charset="iso-8859-1"
You were doing something wrong, sort of. (You'd also find it easier to
follow threads on this mailing list if you'd reply using the Reply button -
I suppose you need to Reply to All and then remove the individual recipient
since you're not using an advanced email client like Entourage that can
Reply directly to the list - and then sort messages by Subject. I already
gave you the solution in a previous email.)
You need to
tell application "Address Book"
  tell person 1
    make new custom date at end of custom dates with properties
{label:"Mod Date", value:ABmoddate}
  end tell
end tellÂ
Before Tiger (or some Panther upgrade), you had to do this for every new
element in every Cocoa app. Supposedly, according to Chris Nebel, this was
"fixed" in Panther (others say Tiger). But I think it was only "fixed" in
the sense that Cocoa application developers were now free not to require "at
the end of" (or beginning of). That doesn't mean they actually used the new
facility or made changes, and certainly not for every class of elements.
Address Book is pretty good, by and large, but they didn't change the
implementation for custom dates of person. You still need 'at the end of
custom dates' even in Tiger. So I guess you can still consider it a bug if
you wish, but there is a solution, and it's the solution that has worked for
all elements in Address Book since the beginning of its scriptability in
Jaguar. I just stick with 'at the end of' to avoid these problems.
--Â
Paul Berkowitz
_______________________________________________
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
_______________________________________________
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